{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 将所有特征串联起来，构成RS_Train.csv\n",
    "#RS_Test.csv\n",
    "#为最后推荐系统做准备\n",
    "from __future__ import division\n",
    "\n",
    "import pickle\n",
    "import numpy as np\n",
    "import scipy.io as sio\n",
    "import scipy.sparse as ss\n",
    "import math as ma\n",
    "from numpy.random import random  \n",
    "from collections import defaultdict\n",
    "\n",
    "class RecommonderSystem:\n",
    "  def __init__(self):\n",
    "    # 读入数据做初始化\n",
    "    \n",
    "    #用户和活动新的索引\n",
    "    self.userIndex = pickle.load(open(\"PE_userIndex.pkl\", 'rb'))\n",
    "    self.eventIndex = pickle.load(open(\"PE_eventIndex.pkl\", 'rb'))\n",
    "    self.n_users = len(self.userIndex)\n",
    "    self.n_items = len(self.eventIndex)\n",
    "    \n",
    "    #用户-活动关系矩阵R\n",
    "    #在train_SVD会重新从文件中读取,二者要求的格式不同，来不及统一了:(\n",
    "    self.userEventScores = sio.mmread(\"PE_userEventScores\").todense()\n",
    "    \n",
    "    #倒排表\n",
    "    ##每个用户参加的事件\n",
    "    self.itemsForUser = pickle.load(open(\"PE_eventsForUser.pkl\", 'rb'))\n",
    "    ##事件参加的用户\n",
    "    self.usersForItem = pickle.load(open(\"PE_usersForEvent.pkl\", 'rb'))\n",
    "    \n",
    "    #基于模型的协同过滤参数初始化,训练\n",
    "    self.init_SVD()\n",
    "    self.train_SVD(trainfile = \"train.csv\")\n",
    "    \n",
    "    #根据用户属性计算出的用户之间的相似度\n",
    "    self.userSimMatrix = sio.mmread(\"US_userSimMatrix\").todense()\n",
    "    \n",
    "    #根据活动属性计算出的活动之间的相似度\n",
    "    self.eventPropSim = sio.mmread(\"EV_eventPropSim\").todense()\n",
    "    self.eventContSim = sio.mmread(\"EV_eventContSim\").todense()\n",
    "    \n",
    "    #每个用户的朋友的数目\n",
    "    self.numFriends = sio.mmread(\"UF_numFriends\")\n",
    "    #用户的每个朋友参加活动的分数对该用户的影响\n",
    "    self.userFriends = sio.mmread(\"UF_userFriends\").todense()\n",
    "    \n",
    "    #活动本身的热度\n",
    "    self.eventPopularity = sio.mmread(\"EA_eventPopularity\").todense()\n",
    "    \n",
    "#     for uid1 in self.userIndex:\n",
    "#         for uid2 in self.userIndex:\n",
    "#             if not uid1== uid2:\n",
    "#                 sim = self.sim_cal_UserCF( uid1, uid2)\n",
    "\n",
    "  def init_SVD(self, K=20):\n",
    "    #初始化模型参数（for 基于模型的协同过滤SVD_CF）\n",
    "    self.K = K  \n",
    "    \n",
    "    \n",
    "    #init parameters\n",
    "    #bias\n",
    "    self.bi = np.zeros(self.n_items)  \n",
    "    self.bu = np.zeros(self.n_users)  \n",
    "     \n",
    "    \n",
    "    #the small matrix\n",
    "    self.P = random((self.n_users,self.K))/10*(np.sqrt(self.K))\n",
    "    self.Q = random((self.K, self.n_items))/10*(np.sqrt(self.K))  \n",
    "    \n",
    "    \n",
    "                  \n",
    "          \n",
    "  def train_SVD(self,trainfile = 'train.csv', steps=100,gamma=0.04,Lambda=0.15):\n",
    "    #训练SVD模型（for 基于模型的协同过滤SVD_CF）\n",
    "    #gamma：为学习率\n",
    "    #Lambda：正则参数\n",
    "    \n",
    "    #偷懒了，为了和原来的代码的输入接口一样，直接从训练文件中去读取数据\n",
    "    print (\"SVD Train...\")\n",
    "    ftrain = open(trainfile, 'r')\n",
    "    ftrain.readline()\n",
    "    self.mu = 0.0\n",
    "    n_records = 0\n",
    "    uids = []  #每条记录的用户索引\n",
    "    i_ids = [] #每条记录的item索引\n",
    "    #用户-Item关系矩阵R（内容同userEventScores相同），临时变量，训练完了R不再需要\n",
    "    R = np.zeros((self.n_users, self.n_items))\n",
    "    \n",
    "    for line in ftrain:\n",
    "        cols = line.strip().split(\",\")\n",
    "        u = self.userIndex[cols[0]]  #用户\n",
    "        i = self.eventIndex[cols[1]] #活动\n",
    "        \n",
    "        uids.append(u)\n",
    "        i_ids.append(i)\n",
    "        \n",
    "        R[u,i] = int(cols[4])  #interested\n",
    "        self.mu += R[u,i]\n",
    "        n_records += 1\n",
    "    \n",
    "    ftrain.close()\n",
    "    self.mu /= n_records\n",
    "    \n",
    "    # 请补充完整SVD模型训练过程\n",
    "    self.X = R\n",
    "\n",
    "    \n",
    "    for step in range(steps):  \n",
    "        print ('the ',step,'-th  step is running')  \n",
    "        rmse_sum=0.0 \n",
    "\n",
    "        #将训练样本打散顺序\n",
    "        kk = np.random.permutation(self.X.shape[0])  \n",
    "        print(kk)\n",
    "        for j in range(self.X.shape[0]):  \n",
    "\n",
    "            #每次一个训练样本\n",
    "            i=kk[j]  \n",
    "            uid=int(self.X[i][0])  \n",
    "            i_id=int(self.X[i][1])  \n",
    "            \n",
    "            rat=self.X[i][2]  \n",
    "\n",
    "            #预测残差\n",
    "            eui=rat-self.pred_SVD(uid,i_id)  \n",
    "            #残差平方和\n",
    "            rmse_sum+=eui**2  \n",
    "\n",
    "            #随机梯度下降，更新\n",
    "            self.bu[uid]+=gamma*(eui-Lambda*self.bu[uid])  \n",
    "            self.bi[i_id]+=gamma*(eui-Lambda*self.bi[i_id]) \n",
    "\n",
    "            temp=self.Q[:,i_id]  \n",
    "            self.Q[:,i_id]+=gamma*(eui*self.P[uid,:]-Lambda*self.Q[:,i_id])  \n",
    "            \n",
    "            self.P[uid,:]+=gamma*(eui*temp-Lambda*self.P[uid,:])  \n",
    "\n",
    "        #学习率递减\n",
    "        gamma=gamma*0.93  \n",
    "        print (\"the rmse of this step on train data is \",np.sqrt(rmse_sum/self.X.shape[0]))  \n",
    "        #self.test(test_data)  \n",
    "\n",
    "    \n",
    "    print (\"SVD trained\")\n",
    "    \n",
    "  def pred_SVD(self, uid, i_id):\n",
    "    #根据当前参数，预测用户uid对Item（i_id）的打分  \n",
    "    m = self.mu\n",
    "    _bi = self.bi[i_id]\n",
    "    _bu = self.bu[uid]\n",
    "    nd = np.dot(self.P[uid,:],self.Q[:,i_id])\n",
    "    ans = m+_bi+_bu+nd\n",
    "#     ans=self.mu + self.bi[i_id] + self.bu[uid] + np.dot(self.P[uid,:],self.Q[:,i_id])  \n",
    "        \n",
    "    #将打分范围控制在0-1之间\n",
    "    if ans>1:  \n",
    "        return 1  \n",
    "    elif ans<0:  \n",
    "        return 0\n",
    "    return ans  \n",
    "\n",
    "  def sim_cal_UserCF(self, uid1, uid2 ):\n",
    "    \n",
    "    #请补充基于用户的协同过滤中的两个用户uid1和uid2之间的相似度（根据两个用户对item打分的相似度）\n",
    "    similarity = 0.0\n",
    "    \n",
    "    '''\n",
    "    获得两个用户对于所有事件的打分\n",
    "    获得两个用户对于所有事件的平均打分\n",
    "    套用相似度公式获得相似度\n",
    "    '''\n",
    "    uid1_ = uid1#self.userIndex[uid1]\n",
    "    uid2_ = uid2#self.userIndex[uid2]\n",
    "    \n",
    "    items1 = self.userEventScores[uid1_,:].getA1()\n",
    "    sum_items1_bar = np.sum(items1) / len(items1)\n",
    "    items2 = self.userEventScores[uid2_,:].getA1()\n",
    "    sum_items2_bar = np.sum(items2) / len(items2)\n",
    "    \n",
    "    rap_rabar = (items1 - sum_items1_bar)\n",
    "    rbp_rbbar = (items2 - sum_items2_bar)\n",
    "    \n",
    "    up = np.sum(rap_rabar * rbp_rbbar)\n",
    "    down1 = ma.sqrt(np.sum(rap_rabar* rap_rabar)) + 0.000001\n",
    "    down2 = ma.sqrt(np.sum(rbp_rbbar* rbp_rbbar)) + 0.000001\n",
    "    \n",
    "    \n",
    "    similarity = up / (down1 * down2)\n",
    "    \n",
    "    \n",
    "    return similarity\n",
    "\n",
    "  def userCFReco(self, userId, eventId):\n",
    "    \"\"\"\n",
    "    根据User-based协同过滤，得到event的推荐度\n",
    "    基本的伪代码思路如下：\n",
    "    for item i\n",
    "      for every other user v that has a preference for i\n",
    "        compute similarity s between u and v\n",
    "        incorporate v's preference for i weighted by s into running aversge\n",
    "    return top items ranked by weighted average\n",
    "    \"\"\"\n",
    "    #请补充完整代码\n",
    "    ans = 0.0\n",
    "    \n",
    "    '''\n",
    "    单纯的公式实现\n",
    "    '''\n",
    "    \n",
    "    u = self.userIndex[userId]\n",
    "    i = self.eventIndex[eventId]\n",
    "  \n",
    "    u_all = self.userEventScores[u,:].getA1()\n",
    "    u_bar = sum(u_all) / len(u_all)\n",
    "    \n",
    "    up_sum = 0\n",
    "    down_sum = 0\n",
    "    \n",
    "    for uid2 in self.userIndex:\n",
    "        v = self.userIndex[uid2]\n",
    "        v_all = self.userEventScores[v,:].getA1()\n",
    "        v_bar = np.sum(u_all) / len(u_all)\n",
    "        sim = self.sim_cal_UserCF(u,v)\n",
    "        if not (u == v) :\n",
    "            up_sum = up_sum + sim * (self.userEventScores[v,i] - v_bar)\n",
    "            down_sum = down_sum + sim    \n",
    "    \n",
    "    ans = up_sum / (down_sum + 0.000001)\n",
    "    return ans\n",
    "\n",
    "\n",
    "  def sim_cal_ItemCF(self, i_id1, i_id2):\n",
    "    #计算Item i_id1和i_id2之间的相似性\n",
    "    #请补充完整代码\n",
    "    #similarity = 0.0\n",
    "    \n",
    "    '''\n",
    "    获得有效用户标记\n",
    "    '''\n",
    "    user_valid = {}\n",
    "    for user in self.UserForItem[i_id1]: #对item1打过分\n",
    "        if user in self.UserForItem[i_id2]: # 也对item2打过分\n",
    "            user_valid[user] = 1\n",
    "            \n",
    "    #获得有效用户数\n",
    "    num_valid = len(user_valid)\n",
    "    if num_valid == 0: # 没有共同打分的用户，相似度为0\n",
    "        return 0\n",
    "    \n",
    "    #所有有效用户对1的打分\n",
    "    item1_all = np.array([self.UsersForItem[i_id1][u] for u in user_valid])\n",
    "    #所有有效用户对2的打分\n",
    "    item2_all = np.array([self.UsersForItem[i_id2][u] for u in user_valid])\n",
    "    \n",
    "    sum1=np.sum(item1_all)  \n",
    "    sum2=np.sum(item2_all)  \n",
    "    sum1Sq=np.sum(item1_all**2)  \n",
    "    sum2Sq=np.sum(item2_all**2)  \n",
    "    pSum=np.sum(item1_all*item2_all)  \n",
    "\n",
    "    #分子\n",
    "    num=pSum-(sum1*sum2/n)  \n",
    "\n",
    "    #分母\n",
    "    den=np.sqrt((sum1Sq-sum1**2/n)*(sum2Sq-sum2**2/n))  \n",
    "    if den==0:  \n",
    "        return 0  \n",
    "\n",
    "    #return similarity     \n",
    "    return num/den  \n",
    "            \n",
    "  def eventCFReco(self, userId, eventId):    \n",
    "    \"\"\"\n",
    "    根据基于物品的协同过滤，得到Event的推荐度\n",
    "    基本的伪代码思路如下：\n",
    "    for item i \n",
    "        for every item j tht u has a preference for\n",
    "            compute similarity s between i and j\n",
    "            add u's preference for j weighted by s to a running average\n",
    "    return top items, ranked by weighted average\n",
    "    \"\"\"\n",
    "    #请补充完整代码\n",
    "    #ans = 0.0\n",
    "    \n",
    "    sim_accumulate=0.0  \n",
    "    rat_acc=0.0  \n",
    "\n",
    "    for item in self.itemsForUser[userId]:  #用户uid打过分的所有Item\n",
    "        sim = self.sim_cal_ItemCF(item,eventId)    #该Item与i_id之间的相似度\n",
    "        if sim<0:continue  \n",
    "        #print sim,self.user_movie[uid][item],sim*self.user_movie[uid][item]  \n",
    "\n",
    "        rat_acc += sim * self.itemsForUser[userId][item]  \n",
    "        sim_accumulate += sim  \n",
    "\n",
    "    #print rat_acc,sim_accumulate  \n",
    "    if sim_accumulate==0: #no same user rated,return average rates of the data  \n",
    "        return  self.mu  \n",
    "    return rat_acc/sim_accumulate  \n",
    "\n",
    "  \n",
    "    #return ans\n",
    "    \n",
    "  def svdCFReco(self, userId, eventId):\n",
    "    #基于模型的协同过滤, SVD++/LFM\n",
    "    u = self.userIndex[userId]\n",
    "    i = self.eventIndex[eventId]\n",
    "\n",
    "    return self.pred_SVD(u,i)\n",
    "\n",
    "  def userReco(self, userId, eventId):\n",
    "    \"\"\"\n",
    "    类似基于User-based协同过滤，只是用户之间的相似度由用户本身的属性得到，计算event的推荐度\n",
    "    基本的伪代码思路如下：\n",
    "    for item i\n",
    "      for every other user v that has a preference for i\n",
    "        compute similarity s between u and v\n",
    "        incorporate v's preference for i weighted by s into running aversge\n",
    "    return top items ranked by weighted average\n",
    "    \"\"\"\n",
    "    i = self.userIndex[userId]\n",
    "    j = self.eventIndex[eventId]\n",
    "\n",
    "    vs = self.userEventScores[:, j]\n",
    "    sims = self.userSimMatrix[i, :]\n",
    "\n",
    "    prod = sims * vs\n",
    "\n",
    "    try:\n",
    "      return prod[0, 0] - self.userEventScores[i, j]\n",
    "    except IndexError:\n",
    "      return 0\n",
    "\n",
    "  def eventReco(self, userId, eventId):\n",
    "    \"\"\"\n",
    "    类似基于Item-based协同过滤，只是item之间的相似度由item本身的属性得到，计算Event的推荐度\n",
    "    基本的伪代码思路如下：\n",
    "    for item i \n",
    "      for every item j that u has a preference for\n",
    "        compute similarity s between i and j\n",
    "        add u's preference for j weighted by s to a running average\n",
    "    return top items, ranked by weighted average\n",
    "    \"\"\"\n",
    "    i = self.userIndex[userId]\n",
    "    j = self.eventIndex[eventId]\n",
    "    js = self.userEventScores[i, :]\n",
    "    psim = self.eventPropSim[:, j]\n",
    "    csim = self.eventContSim[:, j]\n",
    "    pprod = js * psim\n",
    "    cprod = js * csim\n",
    "    \n",
    "    pscore = 0\n",
    "    cscore = 0\n",
    "    try:\n",
    "      pscore = pprod[0, 0] - self.userEventScores[i, j]\n",
    "    except IndexError:\n",
    "      pass\n",
    "    try:\n",
    "      cscore = cprod[0, 0] - self.userEventScores[i, j]\n",
    "    except IndexError:\n",
    "      pass\n",
    "    return pscore, cscore\n",
    "\n",
    "  def userPop(self, userId):\n",
    "    \"\"\"\n",
    "    基于用户的朋友个数来推断用户的社交程度\n",
    "    主要的考量是如果用户的朋友非常多，可能会更倾向于参加各种社交活动\n",
    "    \"\"\"\n",
    "    if userId in self.userIndex:\n",
    "      i = self.userIndex[userId]\n",
    "      try:\n",
    "        return self.numFriends[0, i]\n",
    "      except IndexError:\n",
    "        return 0\n",
    "    else:\n",
    "      return 0\n",
    "\n",
    "  def friendInfluence(self, userId):\n",
    "    \"\"\"\n",
    "    朋友对用户的影响\n",
    "    主要考虑用户所有的朋友中，有多少是非常喜欢参加各种社交活动/event的\n",
    "    用户的朋友圈如果都积极参与各种event，可能会对当前用户有一定的影响\n",
    "    \"\"\"\n",
    "    nusers = np.shape(self.userFriends)[1]\n",
    "    i = self.userIndex[userId]\n",
    "    return (self.userFriends[i, :].sum(axis=0) / nusers)[0,0]\n",
    "\n",
    "  def eventPop(self, eventId):\n",
    "    \"\"\"\n",
    "    本活动本身的热度\n",
    "    主要是通过参与的人数来界定的\n",
    "    \"\"\"\n",
    "    i = self.eventIndex[eventId]\n",
    "    return self.eventPopularity[i, 0]\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "def generateRSData(RS, train=True, header=True):\n",
    "    \"\"\"\n",
    "    把前面user-based协同过滤 和 item-based协同过滤，以及各种热度和影响度作为特征组合在一起\n",
    "    生成新的训练数据，用于分类器分类使用\n",
    "    \"\"\"\n",
    "    fn = \"train.csv\" if train else \"test.csv\"\n",
    "    fin = open(fn, 'rb')\n",
    "    fout = open(\"RS_\" + fn, 'wb')\n",
    "    \n",
    "    #忽略第一行（列名字）\n",
    "    fin.readline().strip().decode().split(\",\")\n",
    "    \n",
    "    # write output header\n",
    "    if header:\n",
    "      ocolnames = [\"invited\", \"userCF_reco\", \"evtCF_reco\",\"svdCF_reco\",\"user_reco\", \"evt_p_reco\",\n",
    "        \"evt_c_reco\", \"user_pop\", \"frnd_infl\", \"evt_pop\"]\n",
    "      if train:\n",
    "        ocolnames.append(\"interested\")\n",
    "        ocolnames.append(\"not_interested\")\n",
    "      j = \",\".join(ocolnames) + \"\\n\"\n",
    "      fout.write(j.encode())\n",
    "    \n",
    "    ln = 0\n",
    "    for line in fin:\n",
    "      ln += 1\n",
    "      if ln%10 == 0:\n",
    "          print( \"%s:%d (userId, eventId)=(%s, %s)\" % (fn, ln, userId, eventId))\n",
    "          #break;\n",
    "      \n",
    "      cols = line.strip().decode().split(\",\")\n",
    "      userId = cols[0]\n",
    "      eventId = cols[1]\n",
    "      invited = cols[2]\n",
    "      \n",
    "      userCF_reco = RS.userCFReco(userId, eventId)\n",
    "      itemCF_reco = RS.eventCFReco(userId, eventId)\n",
    "      svdCF_reco = RS.svdCFReco(userId, eventId)\n",
    "        \n",
    "      user_reco = RS.userReco(userId, eventId)\n",
    "      evt_p_reco, evt_c_reco = RS.eventReco(userId, eventId)\n",
    "      user_pop = RS.userPop(userId)\n",
    "     \n",
    "      frnd_infl = RS.friendInfluence(userId)\n",
    "      evt_pop = RS.eventPop(eventId)\n",
    "      ocols = [invited, userCF_reco, itemCF_reco, svdCF_reco,user_reco, evt_p_reco,\n",
    "        evt_c_reco, user_pop, frnd_infl, evt_pop]\n",
    "      \n",
    "      if train:\n",
    "        ocols.append(cols[4]) # interested\n",
    "        ocols.append(cols[5]) # not_interested\n",
    "      fout.write((\",\".join(map(lambda x: str(x), ocols)) + \"\\n\").encode())\n",
    "    \n",
    "    fin.close()\n",
    "    fout.close()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "SVD Train...\n",
      "the  0 -th  step is running\n",
      "[1446 1571 1432 ...  775 1146 1090]\n",
      "the rmse of this step on train data is  0.04796344531680657\n",
      "the  1 -th  step is running\n",
      "[3058 1842 1505 ... 2768 2910 1491]\n",
      "the rmse of this step on train data is  0.025594845209121104\n",
      "the  2 -th  step is running\n",
      "[1247  479 3025 ... 2686  422  953]\n",
      "the rmse of this step on train data is  0.02557974321371307\n",
      "the  3 -th  step is running\n",
      "[ 945 1542  470 ...  343 2914 2994]\n",
      "the rmse of this step on train data is  0.02556576901609378\n",
      "the  4 -th  step is running\n",
      "[1653 2516 1570 ... 1042 1779 1344]\n",
      "the rmse of this step on train data is  0.025552833674691803\n",
      "the  5 -th  step is running\n",
      "[1068 2999 2311 ... 2403  853 1443]\n",
      "the rmse of this step on train data is  0.025540855915730014\n",
      "the  6 -th  step is running\n",
      "[2282 2295  639 ...  857 1078 2762]\n",
      "the rmse of this step on train data is  0.025529761382887803\n",
      "the  7 -th  step is running\n",
      "[2700  994 2774 ... 1056 2071 3049]\n",
      "the rmse of this step on train data is  0.025519481972251745\n",
      "the  8 -th  step is running\n",
      "[2410  494 1631 ...  585 1558 3121]\n",
      "the rmse of this step on train data is  0.02550995524134178\n",
      "the  9 -th  step is running\n",
      "[3001  544  286 ... 2762  467 2926]\n",
      "the rmse of this step on train data is  0.025501123882647886\n",
      "the  10 -th  step is running\n",
      "[2362 3032 1700 ... 2322  981  267]\n",
      "the rmse of this step on train data is  0.025492935253518773\n",
      "the  11 -th  step is running\n",
      "[2731 2941 1121 ... 2227  711 1556]\n",
      "the rmse of this step on train data is  0.025485340955527295\n",
      "the  12 -th  step is running\n",
      "[1955 2939 1584 ... 2249 1254 1535]\n",
      "the rmse of this step on train data is  0.0254782964569191\n",
      "the  13 -th  step is running\n",
      "[1268 1956 2928 ... 3369 1675 2538]\n",
      "the rmse of this step on train data is  0.025471760753779375\n",
      "the  14 -th  step is running\n",
      "[3340 3152 1054 ... 2760  393 1626]\n",
      "the rmse of this step on train data is  0.025465696064432813\n",
      "the  15 -th  step is running\n",
      "[2853 1619 2506 ... 1684 2225 3203]\n",
      "the rmse of this step on train data is  0.02546006737380283\n",
      "the  16 -th  step is running\n",
      "[ 322  614 3220 ... 3046  444 2613]\n",
      "the rmse of this step on train data is  0.025454843159027695\n",
      "the  17 -th  step is running\n",
      "[ 653  496  232 ... 2796 2133 1606]\n",
      "the rmse of this step on train data is  0.02544890556597738\n",
      "the  18 -th  step is running\n",
      "[3376  919  533 ... 1208  290 1255]\n",
      "the rmse of this step on train data is  0.02544665945447272\n",
      "the  19 -th  step is running\n",
      "[3036 1504 1346 ... 1358 2257  647]\n",
      "the rmse of this step on train data is  0.025436712771068654\n",
      "the  20 -th  step is running\n",
      "[1360 1032 2335 ... 2837 1375 3144]\n",
      "the rmse of this step on train data is  0.025372478638325206\n",
      "the  21 -th  step is running\n",
      "[ 242 2474 1214 ... 1030 1873  475]\n",
      "the rmse of this step on train data is  0.025508437495265386\n",
      "the  22 -th  step is running\n",
      "[2057 1363 1639 ... 2612 1552  397]\n",
      "the rmse of this step on train data is  0.025430832125402092\n",
      "the  23 -th  step is running\n",
      "[1939 1859 2661 ...  535 1910 2583]\n",
      "the rmse of this step on train data is  0.025427356891924206\n",
      "the  24 -th  step is running\n",
      "[1046 3185 3230 ... 2764 3146    7]\n",
      "the rmse of this step on train data is  0.02542446594218468\n",
      "the  25 -th  step is running\n",
      "[2702 2088 3076 ...  378 2523 1163]\n",
      "the rmse of this step on train data is  0.025421780027893453\n",
      "the  26 -th  step is running\n",
      "[2672 1453  776 ...  800  700 1264]\n",
      "the rmse of this step on train data is  0.02541925326374213\n",
      "the  27 -th  step is running\n",
      "[ 114 2752   32 ... 1855 2881  789]\n",
      "the rmse of this step on train data is  0.025416998993044528\n",
      "the  28 -th  step is running\n",
      "[ 608 3307  190 ... 1913  472  927]\n",
      "the rmse of this step on train data is  0.025414810368164023\n",
      "the  29 -th  step is running\n",
      "[ 584 1606  714 ... 1410 2792  833]\n",
      "the rmse of this step on train data is  0.025412808181129988\n",
      "the  30 -th  step is running\n",
      "[2657  558  322 ... 1456 1528 2592]\n",
      "the rmse of this step on train data is  0.025410947195270688\n",
      "the  31 -th  step is running\n",
      "[2245 1185 2078 ... 3242  968 1314]\n",
      "the rmse of this step on train data is  0.025409217418322895\n",
      "the  32 -th  step is running\n",
      "[1012 3202 3156 ... 2957  552 3296]\n",
      "the rmse of this step on train data is  0.02540760920318186\n",
      "the  33 -th  step is running\n",
      "[ 936 1748 2931 ... 2387 1422  973]\n",
      "the rmse of this step on train data is  0.02540611586457453\n",
      "the  34 -th  step is running\n",
      "[2676 1167 1156 ...  883 2868 3107]\n",
      "the rmse of this step on train data is  0.025404726411212903\n",
      "the  35 -th  step is running\n",
      "[1749  884 1447 ... 1558  843 3314]\n",
      "the rmse of this step on train data is  0.025403435201617502\n",
      "the  36 -th  step is running\n",
      "[2640  150  434 ... 1644 1726   18]\n",
      "the rmse of this step on train data is  0.02540183309287528\n",
      "the  37 -th  step is running\n",
      "[2962 2418 1911 ...  774 3156 2884]\n",
      "the rmse of this step on train data is  0.02540153306270495\n",
      "the  38 -th  step is running\n",
      "[1746 1661 3053 ... 2437 3021 2505]\n",
      "the rmse of this step on train data is  0.025399068185468866\n",
      "the  39 -th  step is running\n",
      "[1582 3164 1353 ...  630 1139 1637]\n",
      "the rmse of this step on train data is  0.02540019218490021\n",
      "the  40 -th  step is running\n",
      "[3177  343 1880 ...  477  518 2490]\n",
      "the rmse of this step on train data is  0.02539823766896368\n",
      "the  41 -th  step is running\n",
      "[ 851 2744 1008 ... 2774 1316 2160]\n",
      "the rmse of this step on train data is  0.025385652937276102\n",
      "the  42 -th  step is running\n",
      "[1197 3148 1917 ... 2708  753 3324]\n",
      "the rmse of this step on train data is  0.02539518469794743\n",
      "the  43 -th  step is running\n",
      "[3133 1420 1435 ... 3028 1601  517]\n",
      "the rmse of this step on train data is  0.025362778930119196\n",
      "the  44 -th  step is running\n",
      "[ 897   78   21 ... 1035 1817   99]\n",
      "the rmse of this step on train data is  0.025265830945192424\n",
      "the  45 -th  step is running\n",
      "[   2 2629 2783 ... 1074 1972   57]\n",
      "the rmse of this step on train data is  0.025574957903406387\n",
      "the  46 -th  step is running\n",
      "[1174 1313 2261 ... 1740 3121  752]\n",
      "the rmse of this step on train data is  0.025384573330641435\n",
      "the  47 -th  step is running\n",
      "[2006   28 3114 ... 1330 2275 2092]\n",
      "the rmse of this step on train data is  0.02541763134057615\n",
      "the  48 -th  step is running\n",
      "[1479 2485  977 ... 1364 3380 1122]\n",
      "the rmse of this step on train data is  0.025394315924451787\n",
      "the  49 -th  step is running\n",
      "[ 896 2378 1252 ...  209 1822 3087]\n",
      "the rmse of this step on train data is  0.025392780375299795\n",
      "the  50 -th  step is running\n",
      "[1445 2896  362 ... 1284 3280 3012]\n",
      "the rmse of this step on train data is  0.025385356988866292\n",
      "the  51 -th  step is running\n",
      "[2320 1293  797 ...  952 1078 1609]\n",
      "the rmse of this step on train data is  0.02539844643736241\n",
      "the  52 -th  step is running\n",
      "[2250 2542 1385 ...   83  179 3228]\n",
      "the rmse of this step on train data is  0.025381911143785876\n",
      "the  53 -th  step is running\n",
      "[2549  716 2933 ... 2763  462 1553]\n",
      "the rmse of this step on train data is  0.025398096661620177\n",
      "the  54 -th  step is running\n",
      "[3003 1285 1714 ... 1297 2972  947]\n",
      "the rmse of this step on train data is  0.02539287585042598\n",
      "the  55 -th  step is running\n",
      "[1777 2062  965 ... 2165 2110  355]\n",
      "the rmse of this step on train data is  0.025362837122764804\n",
      "the  56 -th  step is running\n",
      "[2791 1702  699 ... 2621 2353 2842]\n",
      "the rmse of this step on train data is  0.025245785862255146\n",
      "the  57 -th  step is running\n",
      "[2340 1150 1792 ... 1385   75  287]\n",
      "the rmse of this step on train data is  0.025539563140583917\n",
      "the  58 -th  step is running\n",
      "[1439 1438 1410 ... 3271 2824 1626]\n",
      "the rmse of this step on train data is  0.025259357912922668\n",
      "the  59 -th  step is running\n",
      "[2855  328 3166 ... 1299 2096 1622]\n",
      "the rmse of this step on train data is  0.025445176463934703\n",
      "the  60 -th  step is running\n",
      "[ 689 3338 2296 ... 2788  932 2892]\n",
      "the rmse of this step on train data is  0.025510035017041254\n",
      "the  61 -th  step is running\n",
      "[ 555  214 2350 ... 2819  945  705]\n",
      "the rmse of this step on train data is  0.02537474515751085\n",
      "the  62 -th  step is running\n",
      "[962 155 125 ... 514 377 593]\n",
      "the rmse of this step on train data is  0.025289366057268885\n",
      "the  63 -th  step is running\n",
      "[ 381 1883 3136 ... 2713 1344  756]\n",
      "the rmse of this step on train data is  0.025505227656582214\n",
      "the  64 -th  step is running\n",
      "[3151 2886 2000 ... 3153 2847 3368]\n",
      "the rmse of this step on train data is  0.02527786337848792\n",
      "the  65 -th  step is running\n",
      "[1069  768 1519 ... 1709 1105  263]\n",
      "the rmse of this step on train data is  0.025474586383325497\n",
      "the  66 -th  step is running\n",
      "[ 902  860 2044 ... 1990 3162 2565]\n",
      "the rmse of this step on train data is  0.02540067945957635\n",
      "the  67 -th  step is running\n",
      "[3052   97 2292 ... 1979 2495 2742]\n",
      "the rmse of this step on train data is  0.025335668410461146\n",
      "the  68 -th  step is running\n",
      "[1363 2529  352 ... 2200 3093 1866]\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "the rmse of this step on train data is  0.025376906459803224\n",
      "the  69 -th  step is running\n",
      "[ 158 2982  423 ... 1794 1421  874]\n",
      "the rmse of this step on train data is  0.025431008460675798\n",
      "the  70 -th  step is running\n",
      "[ 337 3029  662 ...   86 2312 1538]\n",
      "the rmse of this step on train data is  0.025347732906007177\n",
      "the  71 -th  step is running\n",
      "[2529 1591   61 ...  747 2977 2829]\n",
      "the rmse of this step on train data is  0.02545508429723618\n",
      "the  72 -th  step is running\n",
      "[1569 1018  726 ... 1576 3374  872]\n",
      "the rmse of this step on train data is  0.02530210909950871\n",
      "the  73 -th  step is running\n",
      "[3217 3341  779 ... 2363 1898  330]\n",
      "the rmse of this step on train data is  0.025449391603433028\n",
      "the  74 -th  step is running\n",
      "[1401  655 2583 ... 1542  466  488]\n",
      "the rmse of this step on train data is  0.025346312761399863\n",
      "the  75 -th  step is running\n",
      "[1155 1842 3209 ...   71 3314 2660]\n",
      "the rmse of this step on train data is  0.025325008570159666\n",
      "the  76 -th  step is running\n",
      "[1128   79  942 ... 3311  905 1677]\n",
      "the rmse of this step on train data is  0.025381853466682074\n",
      "the  77 -th  step is running\n",
      "[3339 2498 3173 ... 3018 2161  672]\n",
      "the rmse of this step on train data is  0.02548584717548867\n",
      "the  78 -th  step is running\n",
      "[3002 2058  199 ... 2432  261 2518]\n",
      "the rmse of this step on train data is  0.025305603153223187\n",
      "the  79 -th  step is running\n",
      "[1862 2138 2927 ... 1020 2227 1389]\n",
      "the rmse of this step on train data is  0.025465777192089638\n",
      "the  80 -th  step is running\n",
      "[1197 3072   78 ...  749 1421  861]\n",
      "the rmse of this step on train data is  0.025333587207782185\n",
      "the  81 -th  step is running\n",
      "[2476 1352 1480 ...  138 3218 2552]\n",
      "the rmse of this step on train data is  0.025400504801672646\n",
      "the  82 -th  step is running\n",
      "[2402 3162  764 ... 1592 1903 2438]\n",
      "the rmse of this step on train data is  0.025437070454787807\n",
      "the  83 -th  step is running\n",
      "[1774  704 2754 ... 1697  187 1134]\n",
      "the rmse of this step on train data is  0.025327496528636525\n",
      "the  84 -th  step is running\n",
      "[2269   77 2804 ... 2203 3282  366]\n",
      "the rmse of this step on train data is  0.025396813292894158\n",
      "the  85 -th  step is running\n",
      "[ 364  432 1449 ... 2048 2369 1946]\n",
      "the rmse of this step on train data is  0.025414675145338805\n",
      "the  86 -th  step is running\n",
      "[1611 2928 1946 ... 1654  258 3192]\n",
      "the rmse of this step on train data is  0.02539965264855192\n",
      "the  87 -th  step is running\n",
      "[1985 3380  979 ... 1019 2417 1121]\n",
      "the rmse of this step on train data is  0.025381445942029655\n",
      "the  88 -th  step is running\n",
      "[2657 1572 1721 ...  714 1663 2011]\n",
      "the rmse of this step on train data is  0.025376293660926176\n",
      "the  89 -th  step is running\n",
      "[1769 2108 1630 ... 1844  537 3208]\n",
      "the rmse of this step on train data is  0.025392844558661788\n",
      "the  90 -th  step is running\n",
      "[1299   64  877 ... 1861 3079 2248]\n",
      "the rmse of this step on train data is  0.025358604741615654\n",
      "the  91 -th  step is running\n",
      "[3057 1868  494 ... 2445 1807 2647]\n",
      "the rmse of this step on train data is  0.02535933360895219\n",
      "the  92 -th  step is running\n",
      "[1153 1936  824 ... 1289  713 1808]\n",
      "the rmse of this step on train data is  0.02538815008110105\n",
      "the  93 -th  step is running\n",
      "[3355 3131 3292 ... 3023 2946 2224]\n",
      "the rmse of this step on train data is  0.025395717679903142\n",
      "the  94 -th  step is running\n",
      "[3188  901  808 ...  522 1381 3018]\n",
      "the rmse of this step on train data is  0.025405786865376995\n",
      "the  95 -th  step is running\n",
      "[ 683 1117  373 ... 2214 2081 1214]\n",
      "the rmse of this step on train data is  0.02539613134387415\n",
      "the  96 -th  step is running\n",
      "[1067  893  292 ...  730 2937  431]\n",
      "the rmse of this step on train data is  0.025379030956127206\n",
      "the  97 -th  step is running\n",
      "[2917  892 2422 ...  129    4 1354]\n",
      "the rmse of this step on train data is  0.025372613756726257\n",
      "the  98 -th  step is running\n",
      "[3060  753 3215 ... 3294 3137 2949]\n",
      "the rmse of this step on train data is  0.025368497224967066\n",
      "the  99 -th  step is running\n",
      "[3114 1709 1173 ...  910  553  790]\n",
      "the rmse of this step on train data is  0.025389725119548793\n",
      "SVD trained\n",
      "生成训练数据...\n",
      "\n",
      "train.csv:10 (userId, eventId)=(4236494, 4203627753)\n",
      "train.csv:20 (userId, eventId)=(5574997, 4227005710)\n",
      "train.csv:30 (userId, eventId)=(10329108, 788687116)\n",
      "train.csv:40 (userId, eventId)=(13301498, 457253413)\n",
      "train.csv:50 (userId, eventId)=(14411090, 4193771689)\n",
      "train.csv:60 (userId, eventId)=(16210231, 821546192)\n",
      "train.csv:70 (userId, eventId)=(19283444, 312133462)\n",
      "train.csv:80 (userId, eventId)=(22840021, 1359259009)\n",
      "train.csv:90 (userId, eventId)=(23170479, 2776357538)\n",
      "train.csv:100 (userId, eventId)=(23170479, 1532377761)\n",
      "train.csv:110 (userId, eventId)=(23170479, 1600413013)\n",
      "train.csv:120 (userId, eventId)=(26389537, 999665321)\n",
      "train.csv:130 (userId, eventId)=(28806872, 569347123)\n",
      "train.csv:140 (userId, eventId)=(33930603, 156494494)\n",
      "train.csv:150 (userId, eventId)=(35629376, 1133385189)\n",
      "train.csv:160 (userId, eventId)=(38974975, 2776566965)\n",
      "train.csv:170 (userId, eventId)=(41934198, 2736696425)\n",
      "train.csv:180 (userId, eventId)=(43026617, 4203627753)\n",
      "train.csv:190 (userId, eventId)=(45148230, 3163152395)\n",
      "train.csv:200 (userId, eventId)=(48380986, 1967012522)\n",
      "train.csv:210 (userId, eventId)=(50457238, 910169576)\n",
      "train.csv:220 (userId, eventId)=(51165908, 3017074183)\n",
      "train.csv:230 (userId, eventId)=(61814256, 3203913218)\n",
      "train.csv:240 (userId, eventId)=(65801702, 3751969407)\n",
      "train.csv:250 (userId, eventId)=(66260844, 3558623308)\n",
      "train.csv:260 (userId, eventId)=(69302861, 4116238303)\n",
      "train.csv:270 (userId, eventId)=(70152834, 1390707377)\n",
      "train.csv:280 (userId, eventId)=(70585535, 3486313858)\n",
      "train.csv:290 (userId, eventId)=(72298333, 2149464820)\n",
      "train.csv:300 (userId, eventId)=(73288922, 1501313615)\n",
      "train.csv:310 (userId, eventId)=(80379054, 206713867)\n",
      "train.csv:320 (userId, eventId)=(81458678, 61894853)\n",
      "train.csv:330 (userId, eventId)=(82610705, 559618821)\n",
      "train.csv:340 (userId, eventId)=(82610705, 2114371180)\n",
      "train.csv:350 (userId, eventId)=(85640691, 1604093765)\n",
      "train.csv:360 (userId, eventId)=(88554519, 2893363609)\n",
      "train.csv:370 (userId, eventId)=(92410554, 4093857686)\n",
      "train.csv:380 (userId, eventId)=(95170590, 2529072432)\n",
      "train.csv:390 (userId, eventId)=(96542289, 3129233779)\n",
      "train.csv:400 (userId, eventId)=(96542289, 3033099568)\n",
      "train.csv:410 (userId, eventId)=(96542289, 160567780)\n",
      "train.csv:420 (userId, eventId)=(96931058, 3349548561)\n",
      "train.csv:430 (userId, eventId)=(98054194, 1488068589)\n",
      "train.csv:440 (userId, eventId)=(102981257, 3517217019)\n",
      "train.csv:450 (userId, eventId)=(110310789, 1613656858)\n",
      "train.csv:460 (userId, eventId)=(111840914, 2776357538)\n",
      "train.csv:470 (userId, eventId)=(120053518, 861118590)\n",
      "train.csv:480 (userId, eventId)=(121856257, 514409959)\n",
      "train.csv:490 (userId, eventId)=(122826603, 210121672)\n",
      "train.csv:500 (userId, eventId)=(123290209, 1887085024)\n",
      "train.csv:510 (userId, eventId)=(128723876, 4193610911)\n",
      "train.csv:520 (userId, eventId)=(132341149, 1269035551)\n",
      "train.csv:530 (userId, eventId)=(139210489, 3911341942)\n",
      "train.csv:540 (userId, eventId)=(140576550, 3484398328)\n",
      "train.csv:550 (userId, eventId)=(147852768, 1128274822)\n",
      "train.csv:560 (userId, eventId)=(156079457, 4181743367)\n",
      "train.csv:570 (userId, eventId)=(156584666, 2477995738)\n",
      "train.csv:580 (userId, eventId)=(158531231, 2763790767)\n",
      "train.csv:590 (userId, eventId)=(166685992, 1448086840)\n",
      "train.csv:600 (userId, eventId)=(167200370, 1699561506)\n",
      "train.csv:610 (userId, eventId)=(171842881, 2607100460)\n",
      "train.csv:620 (userId, eventId)=(171842881, 797638314)\n",
      "train.csv:630 (userId, eventId)=(178517662, 4267868521)\n",
      "train.csv:640 (userId, eventId)=(183275855, 1613671569)\n",
      "train.csv:650 (userId, eventId)=(184140061, 3339141512)\n",
      "train.csv:660 (userId, eventId)=(185422302, 3951904788)\n",
      "train.csv:670 (userId, eventId)=(187910813, 4038388081)\n",
      "train.csv:680 (userId, eventId)=(193158441, 3849306291)\n",
      "train.csv:690 (userId, eventId)=(193920233, 4144431463)\n",
      "train.csv:700 (userId, eventId)=(195973264, 3084168587)\n",
      "train.csv:710 (userId, eventId)=(197344023, 642644408)\n",
      "train.csv:720 (userId, eventId)=(199120737, 959243663)\n",
      "train.csv:730 (userId, eventId)=(199379035, 2063177201)\n",
      "train.csv:740 (userId, eventId)=(203050907, 1699663431)\n",
      "train.csv:750 (userId, eventId)=(203456139, 2989846146)\n",
      "train.csv:760 (userId, eventId)=(204568422, 96230245)\n",
      "train.csv:770 (userId, eventId)=(210296799, 3562955208)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:780 (userId, eventId)=(210626346, 1718853706)\n",
      "train.csv:790 (userId, eventId)=(220184636, 1421267283)\n",
      "train.csv:800 (userId, eventId)=(221442949, 1390707377)\n",
      "train.csv:810 (userId, eventId)=(223870698, 3863879024)\n",
      "train.csv:820 (userId, eventId)=(238446352, 2764233627)\n",
      "train.csv:830 (userId, eventId)=(240521211, 3123265999)\n",
      "train.csv:840 (userId, eventId)=(242262473, 2891981561)\n",
      "train.csv:850 (userId, eventId)=(244644122, 823015621)\n",
      "train.csv:860 (userId, eventId)=(246547106, 1728390960)\n",
      "train.csv:870 (userId, eventId)=(247769793, 1336517851)\n",
      "train.csv:880 (userId, eventId)=(248805577, 2498491194)\n",
      "train.csv:890 (userId, eventId)=(249577815, 862876550)\n",
      "train.csv:900 (userId, eventId)=(249577815, 530842823)\n",
      "train.csv:910 (userId, eventId)=(252627634, 4002702641)\n",
      "train.csv:920 (userId, eventId)=(255311196, 2568338180)\n",
      "train.csv:930 (userId, eventId)=(256692717, 2130616732)\n",
      "train.csv:940 (userId, eventId)=(261990895, 2815171271)\n",
      "train.csv:950 (userId, eventId)=(263599897, 1206554126)\n",
      "train.csv:960 (userId, eventId)=(265142861, 1265872170)\n",
      "train.csv:970 (userId, eventId)=(265682801, 1310511988)\n",
      "train.csv:980 (userId, eventId)=(267902048, 910169576)\n",
      "train.csv:990 (userId, eventId)=(272886293, 1611840162)\n",
      "train.csv:1000 (userId, eventId)=(272886293, 199858305)\n",
      "train.csv:1010 (userId, eventId)=(275264384, 1306257783)\n",
      "train.csv:1020 (userId, eventId)=(279323206, 1203717384)\n",
      "train.csv:1030 (userId, eventId)=(280410144, 1600413013)\n",
      "train.csv:1040 (userId, eventId)=(280995052, 745172514)\n",
      "train.csv:1050 (userId, eventId)=(282487230, 3843341515)\n",
      "train.csv:1060 (userId, eventId)=(282487230, 3207630269)\n",
      "train.csv:1070 (userId, eventId)=(283716061, 2007279414)\n",
      "train.csv:1080 (userId, eventId)=(286293491, 3171704410)\n",
      "train.csv:1090 (userId, eventId)=(292529766, 2073417105)\n",
      "train.csv:1100 (userId, eventId)=(296126900, 1600413013)\n",
      "train.csv:1110 (userId, eventId)=(299446963, 952519340)\n",
      "train.csv:1120 (userId, eventId)=(304983697, 1964407998)\n",
      "train.csv:1130 (userId, eventId)=(305160382, 2428305873)\n",
      "train.csv:1140 (userId, eventId)=(306422496, 1921897790)\n",
      "train.csv:1150 (userId, eventId)=(307071731, 1269035551)\n",
      "train.csv:1160 (userId, eventId)=(307271704, 3498692897)\n",
      "train.csv:1170 (userId, eventId)=(310296684, 546889678)\n",
      "train.csv:1180 (userId, eventId)=(310846555, 2658555390)\n",
      "train.csv:1190 (userId, eventId)=(320000323, 2963760335)\n",
      "train.csv:1200 (userId, eventId)=(322814221, 4105510328)\n",
      "train.csv:1210 (userId, eventId)=(326930040, 33704537)\n",
      "train.csv:1220 (userId, eventId)=(327414596, 2529072432)\n",
      "train.csv:1230 (userId, eventId)=(328922601, 2139628002)\n",
      "train.csv:1240 (userId, eventId)=(331982192, 1269035551)\n",
      "train.csv:1250 (userId, eventId)=(333508463, 2007279414)\n",
      "train.csv:1260 (userId, eventId)=(336493147, 221202458)\n",
      "train.csv:1270 (userId, eventId)=(338395830, 3705342940)\n",
      "train.csv:1280 (userId, eventId)=(341641838, 620931168)\n",
      "train.csv:1290 (userId, eventId)=(344906444, 2130616732)\n",
      "train.csv:1300 (userId, eventId)=(350964414, 1749797086)\n",
      "train.csv:1310 (userId, eventId)=(351713549, 1095858231)\n",
      "train.csv:1320 (userId, eventId)=(351801772, 1509619943)\n",
      "train.csv:1330 (userId, eventId)=(352769719, 2633697384)\n",
      "train.csv:1340 (userId, eventId)=(354974889, 1764880922)\n",
      "train.csv:1350 (userId, eventId)=(358368837, 2571460566)\n",
      "train.csv:1360 (userId, eventId)=(358368837, 2379850649)\n",
      "train.csv:1370 (userId, eventId)=(363577443, 3745079581)\n",
      "train.csv:1380 (userId, eventId)=(364700925, 4279704370)\n",
      "train.csv:1390 (userId, eventId)=(366365683, 2843312746)\n",
      "train.csv:1400 (userId, eventId)=(374464774, 3029325544)\n",
      "train.csv:1410 (userId, eventId)=(374950100, 364572656)\n",
      "train.csv:1420 (userId, eventId)=(379327893, 3138309402)\n",
      "train.csv:1430 (userId, eventId)=(382550204, 4255760117)\n",
      "train.csv:1440 (userId, eventId)=(383523902, 1597380017)\n",
      "train.csv:1450 (userId, eventId)=(384269001, 1074417398)\n",
      "train.csv:1460 (userId, eventId)=(384932005, 821546192)\n",
      "train.csv:1470 (userId, eventId)=(386145959, 2368738722)\n",
      "train.csv:1480 (userId, eventId)=(392706219, 2030801280)\n",
      "train.csv:1490 (userId, eventId)=(393817534, 4140354199)\n",
      "train.csv:1500 (userId, eventId)=(395305791, 1582270949)\n",
      "train.csv:1510 (userId, eventId)=(395305791, 2431658513)\n",
      "train.csv:1520 (userId, eventId)=(396929851, 3613872232)\n",
      "train.csv:1530 (userId, eventId)=(398134674, 2007279414)\n",
      "train.csv:1540 (userId, eventId)=(403467810, 2418142030)\n",
      "train.csv:1550 (userId, eventId)=(411622998, 3571898945)\n",
      "train.csv:1560 (userId, eventId)=(413292015, 2490299454)\n",
      "train.csv:1570 (userId, eventId)=(414832767, 1120280312)\n",
      "train.csv:1580 (userId, eventId)=(419456233, 3376874101)\n",
      "train.csv:1590 (userId, eventId)=(419778061, 1600413013)\n",
      "train.csv:1600 (userId, eventId)=(422002690, 4251608898)\n",
      "train.csv:1610 (userId, eventId)=(423256429, 1860393518)\n",
      "train.csv:1620 (userId, eventId)=(427471768, 2039358442)\n",
      "train.csv:1630 (userId, eventId)=(429489211, 3868972599)\n",
      "train.csv:1640 (userId, eventId)=(436392678, 1902753965)\n",
      "train.csv:1650 (userId, eventId)=(437050836, 2147374657)\n",
      "train.csv:1660 (userId, eventId)=(439316726, 1423412400)\n",
      "train.csv:1670 (userId, eventId)=(439366650, 1269035551)\n",
      "train.csv:1680 (userId, eventId)=(441103517, 3502397803)\n",
      "train.csv:1690 (userId, eventId)=(441391794, 2007279414)\n",
      "train.csv:1700 (userId, eventId)=(443931185, 677713209)\n",
      "train.csv:1710 (userId, eventId)=(447244169, 43564092)\n",
      "train.csv:1720 (userId, eventId)=(447504709, 827682864)\n",
      "train.csv:1730 (userId, eventId)=(453809966, 1390707377)\n",
      "train.csv:1740 (userId, eventId)=(458097400, 3034533222)\n",
      "train.csv:1750 (userId, eventId)=(458389001, 1163018914)\n",
      "train.csv:1760 (userId, eventId)=(460608021, 1835656053)\n",
      "train.csv:1770 (userId, eventId)=(460608021, 3254529235)\n",
      "train.csv:1780 (userId, eventId)=(460608021, 2629442395)\n",
      "train.csv:1790 (userId, eventId)=(467001379, 2119788366)\n",
      "train.csv:1800 (userId, eventId)=(475620820, 1952482771)\n",
      "train.csv:1810 (userId, eventId)=(476865227, 2732810444)\n",
      "train.csv:1820 (userId, eventId)=(481236042, 2643522744)\n",
      "train.csv:1830 (userId, eventId)=(483332100, 2299728495)\n",
      "train.csv:1840 (userId, eventId)=(486871070, 1776393554)\n",
      "train.csv:1850 (userId, eventId)=(486884397, 2748209109)\n",
      "train.csv:1860 (userId, eventId)=(489170488, 2046854471)\n",
      "train.csv:1870 (userId, eventId)=(491263047, 2429675854)\n",
      "train.csv:1880 (userId, eventId)=(491792092, 721858430)\n",
      "train.csv:1890 (userId, eventId)=(495379217, 2027514460)\n",
      "train.csv:1900 (userId, eventId)=(499079668, 1876322819)\n",
      "train.csv:1910 (userId, eventId)=(507847098, 1361307272)\n",
      "train.csv:1920 (userId, eventId)=(508282809, 919381911)\n",
      "train.csv:1930 (userId, eventId)=(508837021, 895171477)\n",
      "train.csv:1940 (userId, eventId)=(516110926, 3491186803)\n",
      "train.csv:1950 (userId, eventId)=(516110926, 2460426930)\n",
      "train.csv:1960 (userId, eventId)=(516353916, 1269035551)\n",
      "train.csv:1970 (userId, eventId)=(516841937, 3170422433)\n",
      "train.csv:1980 (userId, eventId)=(517270916, 2828291365)\n",
      "train.csv:1990 (userId, eventId)=(522776668, 2611754657)\n",
      "train.csv:2000 (userId, eventId)=(527523423, 3272728211)\n",
      "train.csv:2010 (userId, eventId)=(528289771, 968459715)\n",
      "train.csv:2020 (userId, eventId)=(528810329, 2208970780)\n",
      "train.csv:2030 (userId, eventId)=(531662584, 2198800626)\n",
      "train.csv:2040 (userId, eventId)=(532589341, 1942387906)\n",
      "train.csv:2050 (userId, eventId)=(533051511, 952519340)\n",
      "train.csv:2060 (userId, eventId)=(535350558, 645163767)\n",
      "train.csv:2070 (userId, eventId)=(544449933, 3610629096)\n",
      "train.csv:2080 (userId, eventId)=(545289514, 559618821)\n",
      "train.csv:2090 (userId, eventId)=(545289514, 3941838661)\n",
      "train.csv:2100 (userId, eventId)=(550625442, 3344442885)\n",
      "train.csv:2110 (userId, eventId)=(552316934, 3096327312)\n",
      "train.csv:2120 (userId, eventId)=(555384690, 2715083030)\n",
      "train.csv:2130 (userId, eventId)=(564641393, 2802832059)\n",
      "train.csv:2140 (userId, eventId)=(567820539, 3036332464)\n",
      "train.csv:2150 (userId, eventId)=(567820539, 16158771)\n",
      "train.csv:2160 (userId, eventId)=(568409249, 221202458)\n",
      "train.csv:2170 (userId, eventId)=(569536605, 1639958590)\n",
      "train.csv:2180 (userId, eventId)=(570405433, 1621617792)\n",
      "train.csv:2190 (userId, eventId)=(571415268, 1594153489)\n",
      "train.csv:2200 (userId, eventId)=(576776993, 1241297311)\n",
      "train.csv:2210 (userId, eventId)=(580008340, 952519340)\n",
      "train.csv:2220 (userId, eventId)=(584188387, 150342414)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:2230 (userId, eventId)=(588924229, 2153037761)\n",
      "train.csv:2240 (userId, eventId)=(589199943, 1333696176)\n",
      "train.csv:2250 (userId, eventId)=(593799836, 3458190779)\n",
      "train.csv:2260 (userId, eventId)=(599144899, 3632072502)\n",
      "train.csv:2270 (userId, eventId)=(601094182, 4243222986)\n",
      "train.csv:2280 (userId, eventId)=(602317951, 2054614790)\n",
      "train.csv:2290 (userId, eventId)=(603763318, 3816284328)\n",
      "train.csv:2300 (userId, eventId)=(604530209, 3276213471)\n",
      "train.csv:2310 (userId, eventId)=(605903903, 1532377761)\n",
      "train.csv:2320 (userId, eventId)=(608310969, 1600413013)\n",
      "train.csv:2330 (userId, eventId)=(609331956, 2554360190)\n",
      "train.csv:2340 (userId, eventId)=(610133863, 3982727529)\n",
      "train.csv:2350 (userId, eventId)=(612098420, 614606641)\n",
      "train.csv:2360 (userId, eventId)=(613747359, 3376203612)\n",
      "train.csv:2370 (userId, eventId)=(614599699, 2428145712)\n",
      "train.csv:2380 (userId, eventId)=(616227847, 4140981574)\n",
      "train.csv:2390 (userId, eventId)=(618927177, 1698790428)\n",
      "train.csv:2400 (userId, eventId)=(627948360, 2355400133)\n",
      "train.csv:2410 (userId, eventId)=(631446479, 1937970808)\n",
      "train.csv:2420 (userId, eventId)=(635462786, 3541476814)\n",
      "train.csv:2430 (userId, eventId)=(639250885, 406159580)\n",
      "train.csv:2440 (userId, eventId)=(639409951, 3277893314)\n",
      "train.csv:2450 (userId, eventId)=(641836752, 3415274331)\n",
      "train.csv:2460 (userId, eventId)=(642317092, 761140108)\n",
      "train.csv:2470 (userId, eventId)=(645414373, 473346989)\n",
      "train.csv:2480 (userId, eventId)=(649114603, 1205417206)\n",
      "train.csv:2490 (userId, eventId)=(651240040, 1361307272)\n",
      "train.csv:2500 (userId, eventId)=(651258472, 792632006)\n",
      "train.csv:2510 (userId, eventId)=(653909548, 3444116390)\n",
      "train.csv:2520 (userId, eventId)=(655721325, 1858559841)\n",
      "train.csv:2530 (userId, eventId)=(659447721, 1669597962)\n",
      "train.csv:2540 (userId, eventId)=(659725808, 2822187055)\n",
      "train.csv:2550 (userId, eventId)=(661151794, 3780075220)\n",
      "train.csv:2560 (userId, eventId)=(661151794, 1381535648)\n",
      "train.csv:2570 (userId, eventId)=(666534021, 2460729759)\n",
      "train.csv:2580 (userId, eventId)=(673356819, 2610561518)\n",
      "train.csv:2590 (userId, eventId)=(677234912, 991427858)\n",
      "train.csv:2600 (userId, eventId)=(680402144, 3877409694)\n",
      "train.csv:2610 (userId, eventId)=(681010476, 44607617)\n",
      "train.csv:2620 (userId, eventId)=(682721107, 600647841)\n",
      "train.csv:2630 (userId, eventId)=(686015101, 3216854901)\n",
      "train.csv:2640 (userId, eventId)=(687313787, 1174920776)\n",
      "train.csv:2650 (userId, eventId)=(689961313, 4063842421)\n",
      "train.csv:2660 (userId, eventId)=(691831024, 1714855985)\n",
      "train.csv:2670 (userId, eventId)=(694709965, 1241270051)\n",
      "train.csv:2680 (userId, eventId)=(700438783, 3849306291)\n",
      "train.csv:2690 (userId, eventId)=(700438783, 673098017)\n",
      "train.csv:2700 (userId, eventId)=(708262477, 1044854627)\n",
      "train.csv:2710 (userId, eventId)=(709445936, 1463617028)\n",
      "train.csv:2720 (userId, eventId)=(715159059, 2529072432)\n",
      "train.csv:2730 (userId, eventId)=(723110955, 1401528678)\n",
      "train.csv:2740 (userId, eventId)=(723110955, 1401528678)\n",
      "train.csv:2750 (userId, eventId)=(724483958, 2224372535)\n",
      "train.csv:2760 (userId, eventId)=(724978354, 407061424)\n",
      "train.csv:2770 (userId, eventId)=(724978354, 3480624055)\n",
      "train.csv:2780 (userId, eventId)=(728332848, 2877182292)\n",
      "train.csv:2790 (userId, eventId)=(732078356, 1311508070)\n",
      "train.csv:2800 (userId, eventId)=(732078356, 3580637647)\n",
      "train.csv:2810 (userId, eventId)=(736262792, 1205670273)\n",
      "train.csv:2820 (userId, eventId)=(738324703, 38825896)\n",
      "train.csv:2830 (userId, eventId)=(738525400, 3097171667)\n",
      "train.csv:2840 (userId, eventId)=(743008535, 4125204455)\n",
      "train.csv:2850 (userId, eventId)=(747578727, 823015621)\n",
      "train.csv:2860 (userId, eventId)=(749467696, 2797281037)\n",
      "train.csv:2870 (userId, eventId)=(761616937, 633659090)\n",
      "train.csv:2880 (userId, eventId)=(761616937, 97217712)\n",
      "train.csv:2890 (userId, eventId)=(763143562, 3702049129)\n",
      "train.csv:2900 (userId, eventId)=(765240064, 3169458477)\n",
      "train.csv:2910 (userId, eventId)=(770526360, 1269035551)\n",
      "train.csv:2920 (userId, eventId)=(776020237, 952519340)\n",
      "train.csv:2930 (userId, eventId)=(785251375, 645163767)\n",
      "train.csv:2940 (userId, eventId)=(786776836, 3985328273)\n",
      "train.csv:2950 (userId, eventId)=(793834125, 4259189014)\n",
      "train.csv:2960 (userId, eventId)=(793842953, 3584202062)\n",
      "train.csv:2970 (userId, eventId)=(803166736, 1076364848)\n",
      "train.csv:2980 (userId, eventId)=(803991005, 4211880721)\n",
      "train.csv:2990 (userId, eventId)=(810608905, 3905915919)\n",
      "train.csv:3000 (userId, eventId)=(811791433, 524756826)\n",
      "train.csv:3010 (userId, eventId)=(812299615, 3830416827)\n",
      "train.csv:3020 (userId, eventId)=(818241254, 1127671037)\n",
      "train.csv:3030 (userId, eventId)=(825875823, 2529072432)\n",
      "train.csv:3040 (userId, eventId)=(826927178, 1371024414)\n",
      "train.csv:3050 (userId, eventId)=(828445240, 3359524298)\n",
      "train.csv:3060 (userId, eventId)=(830686203, 1355698802)\n",
      "train.csv:3070 (userId, eventId)=(836628838, 1485887263)\n",
      "train.csv:3080 (userId, eventId)=(840865386, 378308819)\n",
      "train.csv:3090 (userId, eventId)=(842198355, 1133385189)\n",
      "train.csv:3100 (userId, eventId)=(848363602, 588161010)\n",
      "train.csv:3110 (userId, eventId)=(848730816, 1228296357)\n",
      "train.csv:3120 (userId, eventId)=(863771353, 151129683)\n",
      "train.csv:3130 (userId, eventId)=(866032649, 1229195202)\n",
      "train.csv:3140 (userId, eventId)=(866032649, 816912378)\n",
      "train.csv:3150 (userId, eventId)=(869017322, 4208643265)\n",
      "train.csv:3160 (userId, eventId)=(871177088, 4043705370)\n",
      "train.csv:3170 (userId, eventId)=(875145825, 1471140446)\n",
      "train.csv:3180 (userId, eventId)=(875823959, 2063976566)\n",
      "train.csv:3190 (userId, eventId)=(880096064, 2163214170)\n",
      "train.csv:3200 (userId, eventId)=(881544435, 1116957623)\n",
      "train.csv:3210 (userId, eventId)=(883237232, 2702411670)\n",
      "train.csv:3220 (userId, eventId)=(891035674, 2982847299)\n",
      "train.csv:3230 (userId, eventId)=(895925498, 1361307272)\n",
      "train.csv:3240 (userId, eventId)=(895967408, 3944956311)\n",
      "train.csv:3250 (userId, eventId)=(898918449, 806275357)\n",
      "train.csv:3260 (userId, eventId)=(900897870, 3652056284)\n",
      "train.csv:3270 (userId, eventId)=(903486144, 1962078959)\n",
      "train.csv:3280 (userId, eventId)=(905852095, 1600413013)\n",
      "train.csv:3290 (userId, eventId)=(906981127, 2101810388)\n",
      "train.csv:3300 (userId, eventId)=(910947719, 620891059)\n",
      "train.csv:3310 (userId, eventId)=(910947719, 1061602418)\n",
      "train.csv:3320 (userId, eventId)=(913235409, 1532377761)\n",
      "train.csv:3330 (userId, eventId)=(914476369, 1116957623)\n",
      "train.csv:3340 (userId, eventId)=(916547437, 2007279414)\n",
      "train.csv:3350 (userId, eventId)=(917421982, 1776393554)\n",
      "train.csv:3360 (userId, eventId)=(925172794, 2719491342)\n",
      "train.csv:3370 (userId, eventId)=(932480867, 1190045109)\n",
      "train.csv:3380 (userId, eventId)=(932543338, 3383087119)\n",
      "train.csv:3390 (userId, eventId)=(943483502, 1555919109)\n",
      "train.csv:3400 (userId, eventId)=(947750317, 2153037761)\n",
      "train.csv:3410 (userId, eventId)=(959300591, 3267347122)\n",
      "train.csv:3420 (userId, eventId)=(964581027, 1600413013)\n",
      "train.csv:3430 (userId, eventId)=(964607716, 2398192028)\n",
      "train.csv:3440 (userId, eventId)=(967361915, 3315486330)\n",
      "train.csv:3450 (userId, eventId)=(967988763, 403097256)\n",
      "train.csv:3460 (userId, eventId)=(971079958, 1191393757)\n",
      "train.csv:3470 (userId, eventId)=(973677184, 897667289)\n",
      "train.csv:3480 (userId, eventId)=(981252249, 1423412400)\n",
      "train.csv:3490 (userId, eventId)=(983894136, 1600413013)\n",
      "train.csv:3500 (userId, eventId)=(985547042, 1269035551)\n",
      "train.csv:3510 (userId, eventId)=(986039272, 771676713)\n",
      "train.csv:3520 (userId, eventId)=(988160405, 1816813281)\n",
      "train.csv:3530 (userId, eventId)=(988213942, 633659090)\n",
      "train.csv:3540 (userId, eventId)=(990116823, 3754239356)\n",
      "train.csv:3550 (userId, eventId)=(995603012, 2966956306)\n",
      "train.csv:3560 (userId, eventId)=(995603012, 1766992061)\n",
      "train.csv:3570 (userId, eventId)=(1000293064, 3642199129)\n",
      "train.csv:3580 (userId, eventId)=(1006838695, 3047285147)\n",
      "train.csv:3590 (userId, eventId)=(1011223331, 1499053881)\n",
      "train.csv:3600 (userId, eventId)=(1016040879, 3103100779)\n",
      "train.csv:3610 (userId, eventId)=(1017178142, 3769822404)\n",
      "train.csv:3620 (userId, eventId)=(1017536864, 898889852)\n",
      "train.csv:3630 (userId, eventId)=(1018886228, 955398943)\n",
      "train.csv:3640 (userId, eventId)=(1023714879, 3692401116)\n",
      "train.csv:3650 (userId, eventId)=(1023717643, 2529072432)\n",
      "train.csv:3660 (userId, eventId)=(1027250316, 3789027182)\n",
      "train.csv:3670 (userId, eventId)=(1030441254, 3792116629)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:3680 (userId, eventId)=(1030441254, 530021453)\n",
      "train.csv:3690 (userId, eventId)=(1037260580, 673098017)\n",
      "train.csv:3700 (userId, eventId)=(1038432983, 2144881822)\n",
      "train.csv:3710 (userId, eventId)=(1039126403, 2498491194)\n",
      "train.csv:3720 (userId, eventId)=(1044598291, 952519340)\n",
      "train.csv:3730 (userId, eventId)=(1047741032, 3768548263)\n",
      "train.csv:3740 (userId, eventId)=(1053832375, 2529072432)\n",
      "train.csv:3750 (userId, eventId)=(1055981550, 1203717384)\n",
      "train.csv:3760 (userId, eventId)=(1060557660, 3925512770)\n",
      "train.csv:3770 (userId, eventId)=(1061545438, 2013513606)\n",
      "train.csv:3780 (userId, eventId)=(1063337028, 2181144698)\n",
      "train.csv:3790 (userId, eventId)=(1066906993, 622120837)\n",
      "train.csv:3800 (userId, eventId)=(1067164735, 200354622)\n",
      "train.csv:3810 (userId, eventId)=(1067164735, 72461116)\n",
      "train.csv:3820 (userId, eventId)=(1067164735, 2384254802)\n",
      "train.csv:3830 (userId, eventId)=(1067164735, 3649047558)\n",
      "train.csv:3840 (userId, eventId)=(1067164735, 1105514937)\n",
      "train.csv:3850 (userId, eventId)=(1071319145, 1124054232)\n",
      "train.csv:3860 (userId, eventId)=(1072041355, 1061745506)\n",
      "train.csv:3870 (userId, eventId)=(1073821707, 1089819483)\n",
      "train.csv:3880 (userId, eventId)=(1075126714, 2091251917)\n",
      "train.csv:3890 (userId, eventId)=(1075126714, 530014408)\n",
      "train.csv:3900 (userId, eventId)=(1075126714, 584811498)\n",
      "train.csv:3910 (userId, eventId)=(1075375005, 2964716956)\n",
      "train.csv:3920 (userId, eventId)=(1076497247, 3427445292)\n",
      "train.csv:3930 (userId, eventId)=(1079339663, 2611645010)\n",
      "train.csv:3940 (userId, eventId)=(1080002133, 587071307)\n",
      "train.csv:3950 (userId, eventId)=(1085794659, 2717307282)\n",
      "train.csv:3960 (userId, eventId)=(1090447281, 3708212410)\n",
      "train.csv:3970 (userId, eventId)=(1093568005, 2562099864)\n",
      "train.csv:3980 (userId, eventId)=(1101021964, 1600413013)\n",
      "train.csv:3990 (userId, eventId)=(1104038607, 939765972)\n",
      "train.csv:4000 (userId, eventId)=(1107615001, 173949238)\n",
      "train.csv:4010 (userId, eventId)=(1107746429, 1698967520)\n",
      "train.csv:4020 (userId, eventId)=(1109682681, 4182729306)\n",
      "train.csv:4030 (userId, eventId)=(1109825061, 4198564536)\n",
      "train.csv:4040 (userId, eventId)=(1114094430, 2929656192)\n",
      "train.csv:4050 (userId, eventId)=(1115244043, 907368712)\n",
      "train.csv:4060 (userId, eventId)=(1115249498, 739705932)\n",
      "train.csv:4070 (userId, eventId)=(1116289197, 3984337495)\n",
      "train.csv:4080 (userId, eventId)=(1117272184, 1146909088)\n",
      "train.csv:4090 (userId, eventId)=(1117272184, 1662175218)\n",
      "train.csv:4100 (userId, eventId)=(1122537977, 719337372)\n",
      "train.csv:4110 (userId, eventId)=(1123244794, 2007279414)\n",
      "train.csv:4120 (userId, eventId)=(1126868438, 3187433814)\n",
      "train.csv:4130 (userId, eventId)=(1130900979, 261646692)\n",
      "train.csv:4140 (userId, eventId)=(1130967213, 141144704)\n",
      "train.csv:4150 (userId, eventId)=(1132746796, 238236954)\n",
      "train.csv:4160 (userId, eventId)=(1134784132, 2581737850)\n",
      "train.csv:4170 (userId, eventId)=(1144485498, 4202496185)\n",
      "train.csv:4180 (userId, eventId)=(1150230846, 1645204489)\n",
      "train.csv:4190 (userId, eventId)=(1150601139, 2430405430)\n",
      "train.csv:4200 (userId, eventId)=(1152125988, 2428145712)\n",
      "train.csv:4210 (userId, eventId)=(1157924193, 551112142)\n",
      "train.csv:4220 (userId, eventId)=(1159947871, 1601916220)\n",
      "train.csv:4230 (userId, eventId)=(1160667975, 3849306291)\n",
      "train.csv:4240 (userId, eventId)=(1164338332, 4188214514)\n",
      "train.csv:4250 (userId, eventId)=(1168909050, 152418051)\n",
      "train.csv:4260 (userId, eventId)=(1169270868, 1956101005)\n",
      "train.csv:4270 (userId, eventId)=(1170938005, 1180987071)\n",
      "train.csv:4280 (userId, eventId)=(1171363794, 1247486859)\n",
      "train.csv:4290 (userId, eventId)=(1171363794, 321596465)\n",
      "train.csv:4300 (userId, eventId)=(1176550521, 2130616732)\n",
      "train.csv:4310 (userId, eventId)=(1177603447, 1207270926)\n",
      "train.csv:4320 (userId, eventId)=(1184737011, 3920531792)\n",
      "train.csv:4330 (userId, eventId)=(1184895977, 2351154139)\n",
      "train.csv:4340 (userId, eventId)=(1191714842, 2035887714)\n",
      "train.csv:4350 (userId, eventId)=(1197154185, 4016804175)\n",
      "train.csv:4360 (userId, eventId)=(1197154185, 3572269559)\n",
      "train.csv:4370 (userId, eventId)=(1210853041, 1522127313)\n",
      "train.csv:4380 (userId, eventId)=(1213744330, 1829278132)\n",
      "train.csv:4390 (userId, eventId)=(1214006960, 3429711705)\n",
      "train.csv:4400 (userId, eventId)=(1221271987, 3402209713)\n",
      "train.csv:4410 (userId, eventId)=(1221420614, 2278755941)\n",
      "train.csv:4420 (userId, eventId)=(1227446685, 2621627963)\n",
      "train.csv:4430 (userId, eventId)=(1227484684, 2401458775)\n",
      "train.csv:4440 (userId, eventId)=(1230559341, 2459263769)\n",
      "train.csv:4450 (userId, eventId)=(1232677153, 3141008702)\n",
      "train.csv:4460 (userId, eventId)=(1232677153, 601084101)\n",
      "train.csv:4470 (userId, eventId)=(1232677153, 2724269698)\n",
      "train.csv:4480 (userId, eventId)=(1233774081, 1548928340)\n",
      "train.csv:4490 (userId, eventId)=(1235578437, 1793308366)\n",
      "train.csv:4500 (userId, eventId)=(1236336671, 3849306291)\n",
      "train.csv:4510 (userId, eventId)=(1240674478, 799065233)\n",
      "train.csv:4520 (userId, eventId)=(1264179509, 2806565970)\n",
      "train.csv:4530 (userId, eventId)=(1267593079, 2056583312)\n",
      "train.csv:4540 (userId, eventId)=(1268093476, 1138326567)\n",
      "train.csv:4550 (userId, eventId)=(1275857085, 2475079669)\n",
      "train.csv:4560 (userId, eventId)=(1280283349, 834360181)\n",
      "train.csv:4570 (userId, eventId)=(1287353407, 2727714216)\n",
      "train.csv:4580 (userId, eventId)=(1287950172, 1902753965)\n",
      "train.csv:4590 (userId, eventId)=(1289434141, 1513616494)\n",
      "train.csv:4600 (userId, eventId)=(1290399197, 149023715)\n",
      "train.csv:4610 (userId, eventId)=(1292417817, 2643833505)\n",
      "train.csv:4620 (userId, eventId)=(1296007357, 1485887263)\n",
      "train.csv:4630 (userId, eventId)=(1296420014, 889795193)\n",
      "train.csv:4640 (userId, eventId)=(1299595690, 1926323783)\n",
      "train.csv:4650 (userId, eventId)=(1301544506, 137663137)\n",
      "train.csv:4660 (userId, eventId)=(1301945337, 1451401793)\n",
      "train.csv:4670 (userId, eventId)=(1304321680, 3980859647)\n",
      "train.csv:4680 (userId, eventId)=(1308650192, 2126954914)\n",
      "train.csv:4690 (userId, eventId)=(1309915074, 102952604)\n",
      "train.csv:4700 (userId, eventId)=(1313492534, 1693226702)\n",
      "train.csv:4710 (userId, eventId)=(1315208123, 955398943)\n",
      "train.csv:4720 (userId, eventId)=(1318722285, 1532377761)\n",
      "train.csv:4730 (userId, eventId)=(1320099877, 3854862695)\n",
      "train.csv:4740 (userId, eventId)=(1323529412, 3968395368)\n",
      "train.csv:4750 (userId, eventId)=(1328287907, 2011880656)\n",
      "train.csv:4760 (userId, eventId)=(1330656870, 268233790)\n",
      "train.csv:4770 (userId, eventId)=(1336647234, 282265232)\n",
      "train.csv:4780 (userId, eventId)=(1336647234, 1935315082)\n",
      "train.csv:4790 (userId, eventId)=(1339643555, 633659090)\n",
      "train.csv:4800 (userId, eventId)=(1342961341, 2291983990)\n",
      "train.csv:4810 (userId, eventId)=(1344492095, 1184535341)\n",
      "train.csv:4820 (userId, eventId)=(1345896548, 633659090)\n",
      "train.csv:4830 (userId, eventId)=(1346837558, 1611318583)\n",
      "train.csv:4840 (userId, eventId)=(1349737346, 3578957555)\n",
      "train.csv:4850 (userId, eventId)=(1350285710, 1660874393)\n",
      "train.csv:4860 (userId, eventId)=(1353265512, 2933182879)\n",
      "train.csv:4870 (userId, eventId)=(1354120181, 1361307272)\n",
      "train.csv:4880 (userId, eventId)=(1356079140, 2700042611)\n",
      "train.csv:4890 (userId, eventId)=(1358222118, 2751638880)\n",
      "train.csv:4900 (userId, eventId)=(1368412107, 2007279414)\n",
      "train.csv:4910 (userId, eventId)=(1369905557, 2766425759)\n",
      "train.csv:4920 (userId, eventId)=(1372630997, 20381932)\n",
      "train.csv:4930 (userId, eventId)=(1374205441, 3681696850)\n",
      "train.csv:4940 (userId, eventId)=(1374956141, 2594274741)\n",
      "train.csv:4950 (userId, eventId)=(1377585598, 943414054)\n",
      "train.csv:4960 (userId, eventId)=(1386214900, 2408267303)\n",
      "train.csv:4970 (userId, eventId)=(1392332761, 4002702641)\n",
      "train.csv:4980 (userId, eventId)=(1399383819, 3659992710)\n",
      "train.csv:4990 (userId, eventId)=(1408344828, 3222518399)\n",
      "train.csv:5000 (userId, eventId)=(1414301782, 2652356640)\n",
      "train.csv:5010 (userId, eventId)=(1414301782, 3128167927)\n",
      "train.csv:5020 (userId, eventId)=(1419064403, 2155152986)\n",
      "train.csv:5030 (userId, eventId)=(1421630185, 2498491194)\n",
      "train.csv:5040 (userId, eventId)=(1422103142, 2007279414)\n",
      "train.csv:5050 (userId, eventId)=(1427469971, 2114371180)\n",
      "train.csv:5060 (userId, eventId)=(1433939064, 1536819364)\n",
      "train.csv:5070 (userId, eventId)=(1438134738, 1707465742)\n",
      "train.csv:5080 (userId, eventId)=(1440749616, 2806565970)\n",
      "train.csv:5090 (userId, eventId)=(1444113850, 2951987246)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:5100 (userId, eventId)=(1452056386, 4202927804)\n",
      "train.csv:5110 (userId, eventId)=(1459241748, 2193156408)\n",
      "train.csv:5120 (userId, eventId)=(1463717359, 615488222)\n",
      "train.csv:5130 (userId, eventId)=(1463808662, 327009161)\n",
      "train.csv:5140 (userId, eventId)=(1474775097, 1361307272)\n",
      "train.csv:5150 (userId, eventId)=(1482478167, 2498491194)\n",
      "train.csv:5160 (userId, eventId)=(1484078818, 2806565970)\n",
      "train.csv:5170 (userId, eventId)=(1486465606, 1269035551)\n",
      "train.csv:5180 (userId, eventId)=(1493407039, 2977827251)\n",
      "train.csv:5190 (userId, eventId)=(1507405031, 776341364)\n",
      "train.csv:5200 (userId, eventId)=(1515828822, 3126487334)\n",
      "train.csv:5210 (userId, eventId)=(1518400220, 1840365070)\n",
      "train.csv:5220 (userId, eventId)=(1525918364, 2130616732)\n",
      "train.csv:5230 (userId, eventId)=(1528359455, 1394487790)\n",
      "train.csv:5240 (userId, eventId)=(1531475209, 4239152097)\n",
      "train.csv:5250 (userId, eventId)=(1535643599, 353933726)\n",
      "train.csv:5260 (userId, eventId)=(1537885461, 396853098)\n",
      "train.csv:5270 (userId, eventId)=(1538685648, 2529072432)\n",
      "train.csv:5280 (userId, eventId)=(1540298318, 296236215)\n",
      "train.csv:5290 (userId, eventId)=(1541564886, 2007279414)\n",
      "train.csv:5300 (userId, eventId)=(1541756008, 2930825326)\n",
      "train.csv:5310 (userId, eventId)=(1543462230, 2410300337)\n",
      "train.csv:5320 (userId, eventId)=(1545906782, 1838041662)\n",
      "train.csv:5330 (userId, eventId)=(1548216840, 3683968161)\n",
      "train.csv:5340 (userId, eventId)=(1548216840, 19341280)\n",
      "train.csv:5350 (userId, eventId)=(1548216840, 1459514053)\n",
      "train.csv:5360 (userId, eventId)=(1551848670, 768818169)\n",
      "train.csv:5370 (userId, eventId)=(1553019839, 526418317)\n",
      "train.csv:5380 (userId, eventId)=(1554993130, 2460426930)\n",
      "train.csv:5390 (userId, eventId)=(1560565543, 1203717384)\n",
      "train.csv:5400 (userId, eventId)=(1566021834, 3037032940)\n",
      "train.csv:5410 (userId, eventId)=(1567057770, 98978060)\n",
      "train.csv:5420 (userId, eventId)=(1568770334, 2117214327)\n",
      "train.csv:5430 (userId, eventId)=(1571490313, 1492629072)\n",
      "train.csv:5440 (userId, eventId)=(1575376083, 810618772)\n",
      "train.csv:5450 (userId, eventId)=(1577437083, 3621854275)\n",
      "train.csv:5460 (userId, eventId)=(1579613783, 3413747696)\n",
      "train.csv:5470 (userId, eventId)=(1583577411, 1321838948)\n",
      "train.csv:5480 (userId, eventId)=(1583772039, 3368979284)\n",
      "train.csv:5490 (userId, eventId)=(1586029420, 1373597420)\n",
      "train.csv:5500 (userId, eventId)=(1595465532, 955398943)\n",
      "train.csv:5510 (userId, eventId)=(1597392855, 704367100)\n",
      "train.csv:5520 (userId, eventId)=(1598750229, 2007279414)\n",
      "train.csv:5530 (userId, eventId)=(1610329121, 897265684)\n",
      "train.csv:5540 (userId, eventId)=(1611204256, 1426221214)\n",
      "train.csv:5550 (userId, eventId)=(1612038297, 2361063319)\n",
      "train.csv:5560 (userId, eventId)=(1612038297, 3518831374)\n",
      "train.csv:5570 (userId, eventId)=(1615303306, 2555858385)\n",
      "train.csv:5580 (userId, eventId)=(1615336827, 53495098)\n",
      "train.csv:5590 (userId, eventId)=(1619040661, 1750407174)\n",
      "train.csv:5600 (userId, eventId)=(1619453117, 3632072502)\n",
      "train.csv:5610 (userId, eventId)=(1622015724, 4272088362)\n",
      "train.csv:5620 (userId, eventId)=(1622366272, 1600413013)\n",
      "train.csv:5630 (userId, eventId)=(1625052108, 3395930833)\n",
      "train.csv:5640 (userId, eventId)=(1625052108, 3644291653)\n",
      "train.csv:5650 (userId, eventId)=(1625052108, 1062024228)\n",
      "train.csv:5660 (userId, eventId)=(1625530935, 1436270591)\n",
      "train.csv:5670 (userId, eventId)=(1628172447, 3571023061)\n",
      "train.csv:5680 (userId, eventId)=(1634011224, 3276213471)\n",
      "train.csv:5690 (userId, eventId)=(1640786388, 3199229320)\n",
      "train.csv:5700 (userId, eventId)=(1649320589, 1162342688)\n",
      "train.csv:5710 (userId, eventId)=(1651844876, 2820039265)\n",
      "train.csv:5720 (userId, eventId)=(1654935837, 713488059)\n",
      "train.csv:5730 (userId, eventId)=(1662308136, 4194316975)\n",
      "train.csv:5740 (userId, eventId)=(1665746866, 1398443663)\n",
      "train.csv:5750 (userId, eventId)=(1666085128, 152418051)\n",
      "train.csv:5760 (userId, eventId)=(1667532620, 2219144892)\n",
      "train.csv:5770 (userId, eventId)=(1668862262, 2288419571)\n",
      "train.csv:5780 (userId, eventId)=(1669178531, 1151525474)\n",
      "train.csv:5790 (userId, eventId)=(1672939792, 155266309)\n",
      "train.csv:5800 (userId, eventId)=(1676582816, 2073609284)\n",
      "train.csv:5810 (userId, eventId)=(1680807465, 955398943)\n",
      "train.csv:5820 (userId, eventId)=(1696361679, 1907550340)\n",
      "train.csv:5830 (userId, eventId)=(1697527574, 1076364848)\n",
      "train.csv:5840 (userId, eventId)=(1701323236, 4253071998)\n",
      "train.csv:5850 (userId, eventId)=(1703562892, 3022634670)\n",
      "train.csv:5860 (userId, eventId)=(1707093494, 559618821)\n",
      "train.csv:5870 (userId, eventId)=(1707278925, 1297375856)\n",
      "train.csv:5880 (userId, eventId)=(1711604959, 4070745483)\n",
      "train.csv:5890 (userId, eventId)=(1716727029, 3849306291)\n",
      "train.csv:5900 (userId, eventId)=(1716791097, 2507151007)\n",
      "train.csv:5910 (userId, eventId)=(1720019070, 1269035551)\n",
      "train.csv:5920 (userId, eventId)=(1724694030, 3968395368)\n",
      "train.csv:5930 (userId, eventId)=(1725995841, 1056047835)\n",
      "train.csv:5940 (userId, eventId)=(1728055600, 466507834)\n",
      "train.csv:5950 (userId, eventId)=(1732120655, 2529072432)\n",
      "train.csv:5960 (userId, eventId)=(1732859563, 462678883)\n",
      "train.csv:5970 (userId, eventId)=(1735204308, 1588010656)\n",
      "train.csv:5980 (userId, eventId)=(1737429301, 3745079581)\n",
      "train.csv:5990 (userId, eventId)=(1741814612, 2153037761)\n",
      "train.csv:6000 (userId, eventId)=(1747091728, 2131379889)\n",
      "train.csv:6010 (userId, eventId)=(1747471686, 450130761)\n",
      "train.csv:6020 (userId, eventId)=(1748492203, 3047285147)\n",
      "train.csv:6030 (userId, eventId)=(1749528606, 823015621)\n",
      "train.csv:6040 (userId, eventId)=(1754474767, 364572656)\n",
      "train.csv:6050 (userId, eventId)=(1757951758, 109156359)\n",
      "train.csv:6060 (userId, eventId)=(1761058217, 959243663)\n",
      "train.csv:6070 (userId, eventId)=(1767855106, 955398943)\n",
      "train.csv:6080 (userId, eventId)=(1772941037, 799065233)\n",
      "train.csv:6090 (userId, eventId)=(1774655165, 2012232184)\n",
      "train.csv:6100 (userId, eventId)=(1783276120, 955398943)\n",
      "train.csv:6110 (userId, eventId)=(1785235519, 800349173)\n",
      "train.csv:6120 (userId, eventId)=(1788141082, 236468864)\n",
      "train.csv:6130 (userId, eventId)=(1788256739, 3720632668)\n",
      "train.csv:6140 (userId, eventId)=(1788256739, 3795482697)\n",
      "train.csv:6150 (userId, eventId)=(1793590520, 4172133524)\n",
      "train.csv:6160 (userId, eventId)=(1799323346, 3252356280)\n",
      "train.csv:6170 (userId, eventId)=(1803816912, 3295345325)\n",
      "train.csv:6180 (userId, eventId)=(1804164018, 899234866)\n",
      "train.csv:6190 (userId, eventId)=(1808101898, 1196882187)\n",
      "train.csv:6200 (userId, eventId)=(1809934947, 496131340)\n",
      "train.csv:6210 (userId, eventId)=(1815721382, 3129511797)\n",
      "train.csv:6220 (userId, eventId)=(1821733300, 3858223520)\n",
      "train.csv:6230 (userId, eventId)=(1823716058, 248110726)\n",
      "train.csv:6240 (userId, eventId)=(1826584692, 2415873572)\n",
      "train.csv:6250 (userId, eventId)=(1832146052, 2529072432)\n",
      "train.csv:6260 (userId, eventId)=(1833128849, 868771423)\n",
      "train.csv:6270 (userId, eventId)=(1833128849, 4222772842)\n",
      "train.csv:6280 (userId, eventId)=(1834669948, 4162137499)\n",
      "train.csv:6290 (userId, eventId)=(1842145373, 2130616732)\n",
      "train.csv:6300 (userId, eventId)=(1844741381, 955398943)\n",
      "train.csv:6310 (userId, eventId)=(1849546291, 1790004322)\n",
      "train.csv:6320 (userId, eventId)=(1851530247, 3712732153)\n",
      "train.csv:6330 (userId, eventId)=(1857390350, 2904491741)\n",
      "train.csv:6340 (userId, eventId)=(1859726822, 955398943)\n",
      "train.csv:6350 (userId, eventId)=(1871580056, 2007279414)\n",
      "train.csv:6360 (userId, eventId)=(1873358601, 2490233992)\n",
      "train.csv:6370 (userId, eventId)=(1875891307, 2428145712)\n",
      "train.csv:6380 (userId, eventId)=(1879459765, 258093774)\n",
      "train.csv:6390 (userId, eventId)=(1879908611, 3808789648)\n",
      "train.csv:6400 (userId, eventId)=(1882344631, 344812468)\n",
      "train.csv:6410 (userId, eventId)=(1889089758, 748520427)\n",
      "train.csv:6420 (userId, eventId)=(1890732196, 3451289141)\n",
      "train.csv:6430 (userId, eventId)=(1895679477, 1826591083)\n",
      "train.csv:6440 (userId, eventId)=(1895679477, 4139722026)\n",
      "train.csv:6450 (userId, eventId)=(1898427878, 3309338938)\n",
      "train.csv:6460 (userId, eventId)=(1906220044, 1527128646)\n",
      "train.csv:6470 (userId, eventId)=(1911617585, 858852228)\n",
      "train.csv:6480 (userId, eventId)=(1912059312, 3601196821)\n",
      "train.csv:6490 (userId, eventId)=(1912698965, 740148951)\n",
      "train.csv:6500 (userId, eventId)=(1914182220, 955398943)\n",
      "train.csv:6510 (userId, eventId)=(1917038415, 2042113559)\n",
      "train.csv:6520 (userId, eventId)=(1918945522, 1996708167)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:6530 (userId, eventId)=(1926859556, 2187392019)\n",
      "train.csv:6540 (userId, eventId)=(1931485787, 633659090)\n",
      "train.csv:6550 (userId, eventId)=(1931818423, 440098296)\n",
      "train.csv:6560 (userId, eventId)=(1933513142, 476754780)\n",
      "train.csv:6570 (userId, eventId)=(1935452377, 616825218)\n",
      "train.csv:6580 (userId, eventId)=(1935452377, 3266414126)\n",
      "train.csv:6590 (userId, eventId)=(1946827878, 952519340)\n",
      "train.csv:6600 (userId, eventId)=(1948333652, 635799819)\n",
      "train.csv:6610 (userId, eventId)=(1949443459, 1205670273)\n",
      "train.csv:6620 (userId, eventId)=(1951340806, 762779146)\n",
      "train.csv:6630 (userId, eventId)=(1952851403, 689023473)\n",
      "train.csv:6640 (userId, eventId)=(1954193338, 3317052947)\n",
      "train.csv:6650 (userId, eventId)=(1954960931, 3177059558)\n",
      "train.csv:6660 (userId, eventId)=(1955766052, 3213836603)\n",
      "train.csv:6670 (userId, eventId)=(1959680039, 1549888315)\n",
      "train.csv:6680 (userId, eventId)=(1964309262, 1600413013)\n",
      "train.csv:6690 (userId, eventId)=(1966851184, 1484873489)\n",
      "train.csv:6700 (userId, eventId)=(1967689783, 861455380)\n",
      "train.csv:6710 (userId, eventId)=(1967928641, 3267660718)\n",
      "train.csv:6720 (userId, eventId)=(1977271538, 2261390272)\n",
      "train.csv:6730 (userId, eventId)=(1980915793, 2623673695)\n",
      "train.csv:6740 (userId, eventId)=(1985852583, 1816813281)\n",
      "train.csv:6750 (userId, eventId)=(1989811285, 1699561506)\n",
      "train.csv:6760 (userId, eventId)=(1990188032, 3069411884)\n",
      "train.csv:6770 (userId, eventId)=(1997928281, 1203717384)\n",
      "train.csv:6780 (userId, eventId)=(2006663136, 3293015360)\n",
      "train.csv:6790 (userId, eventId)=(2008761267, 2641166932)\n",
      "train.csv:6800 (userId, eventId)=(2014445987, 1638236770)\n",
      "train.csv:6810 (userId, eventId)=(2021435753, 221202458)\n",
      "train.csv:6820 (userId, eventId)=(2023721073, 687388226)\n",
      "train.csv:6830 (userId, eventId)=(2023976924, 1600413013)\n",
      "train.csv:6840 (userId, eventId)=(2030266367, 2232765899)\n",
      "train.csv:6850 (userId, eventId)=(2033574675, 952519340)\n",
      "train.csv:6860 (userId, eventId)=(2033945746, 2692070381)\n",
      "train.csv:6870 (userId, eventId)=(2034536037, 1791652679)\n",
      "train.csv:6880 (userId, eventId)=(2040340167, 753115138)\n",
      "train.csv:6890 (userId, eventId)=(2041677127, 1548058369)\n",
      "train.csv:6900 (userId, eventId)=(2048999821, 2466925678)\n",
      "train.csv:6910 (userId, eventId)=(2054648409, 1078399009)\n",
      "train.csv:6920 (userId, eventId)=(2054648409, 896485186)\n",
      "train.csv:6930 (userId, eventId)=(2057625114, 2410124239)\n",
      "train.csv:6940 (userId, eventId)=(2059471156, 2373204206)\n",
      "train.csv:6950 (userId, eventId)=(2062977016, 633659090)\n",
      "train.csv:6960 (userId, eventId)=(2063287658, 3444724802)\n",
      "train.csv:6970 (userId, eventId)=(2068379568, 3048578499)\n",
      "train.csv:6980 (userId, eventId)=(2069145631, 4054253362)\n",
      "train.csv:6990 (userId, eventId)=(2069512156, 1293045154)\n",
      "train.csv:7000 (userId, eventId)=(2071842684, 1076364848)\n",
      "train.csv:7010 (userId, eventId)=(2074086523, 633659090)\n",
      "train.csv:7020 (userId, eventId)=(2081059890, 2007279414)\n",
      "train.csv:7030 (userId, eventId)=(2081393559, 1896310801)\n",
      "train.csv:7040 (userId, eventId)=(2090888096, 1287884858)\n",
      "train.csv:7050 (userId, eventId)=(2098552598, 1594693609)\n",
      "train.csv:7060 (userId, eventId)=(2102662137, 372011842)\n",
      "train.csv:7070 (userId, eventId)=(2105508317, 3984042837)\n",
      "train.csv:7080 (userId, eventId)=(2107308395, 310965747)\n",
      "train.csv:7090 (userId, eventId)=(2112130968, 1426221214)\n",
      "train.csv:7100 (userId, eventId)=(2114638118, 762464570)\n",
      "train.csv:7110 (userId, eventId)=(2116203935, 4058829330)\n",
      "train.csv:7120 (userId, eventId)=(2122304529, 1148012652)\n",
      "train.csv:7130 (userId, eventId)=(2127416756, 4192978272)\n",
      "train.csv:7140 (userId, eventId)=(2129690960, 1983140495)\n",
      "train.csv:7150 (userId, eventId)=(2129690960, 2318827942)\n",
      "train.csv:7160 (userId, eventId)=(2133006016, 3680209340)\n",
      "train.csv:7170 (userId, eventId)=(2138239477, 3047285147)\n",
      "train.csv:7180 (userId, eventId)=(2147677924, 2656575598)\n",
      "train.csv:7190 (userId, eventId)=(2148913954, 3402209713)\n",
      "train.csv:7200 (userId, eventId)=(2153152806, 1600413013)\n",
      "train.csv:7210 (userId, eventId)=(2156846040, 952519340)\n",
      "train.csv:7220 (userId, eventId)=(2162567305, 3584727515)\n",
      "train.csv:7230 (userId, eventId)=(2163304477, 2871310940)\n",
      "train.csv:7240 (userId, eventId)=(2163512224, 643346765)\n",
      "train.csv:7250 (userId, eventId)=(2166518457, 86502595)\n",
      "train.csv:7260 (userId, eventId)=(2169945834, 3120842736)\n",
      "train.csv:7270 (userId, eventId)=(2171206786, 1079489905)\n",
      "train.csv:7280 (userId, eventId)=(2183586456, 1605110491)\n",
      "train.csv:7290 (userId, eventId)=(2187324082, 955398943)\n",
      "train.csv:7300 (userId, eventId)=(2187693519, 3811447746)\n",
      "train.csv:7310 (userId, eventId)=(2191468400, 1213078967)\n",
      "train.csv:7320 (userId, eventId)=(2193628344, 602394192)\n",
      "train.csv:7330 (userId, eventId)=(2193664477, 177193417)\n",
      "train.csv:7340 (userId, eventId)=(2193694254, 3316518304)\n",
      "train.csv:7350 (userId, eventId)=(2196432988, 3395117104)\n",
      "train.csv:7360 (userId, eventId)=(2196976878, 2642084542)\n",
      "train.csv:7370 (userId, eventId)=(2197210107, 1017435233)\n",
      "train.csv:7380 (userId, eventId)=(2199467633, 1902753965)\n",
      "train.csv:7390 (userId, eventId)=(2202079852, 2021591040)\n",
      "train.csv:7400 (userId, eventId)=(2202271093, 1269035551)\n",
      "train.csv:7410 (userId, eventId)=(2205166542, 1006903887)\n",
      "train.csv:7420 (userId, eventId)=(2205536033, 624162389)\n",
      "train.csv:7430 (userId, eventId)=(2207460362, 177094411)\n",
      "train.csv:7440 (userId, eventId)=(2209002289, 41330505)\n",
      "train.csv:7450 (userId, eventId)=(2212184935, 2645301517)\n",
      "train.csv:7460 (userId, eventId)=(2212919969, 2529072432)\n",
      "train.csv:7470 (userId, eventId)=(2216123501, 1910339245)\n",
      "train.csv:7480 (userId, eventId)=(2217567238, 2122716507)\n",
      "train.csv:7490 (userId, eventId)=(2217567238, 3183605169)\n",
      "train.csv:7500 (userId, eventId)=(2217853337, 3051438735)\n",
      "train.csv:7510 (userId, eventId)=(2222162186, 2780690728)\n",
      "train.csv:7520 (userId, eventId)=(2223714757, 899234866)\n",
      "train.csv:7530 (userId, eventId)=(2223946882, 284003894)\n",
      "train.csv:7540 (userId, eventId)=(2223946882, 202394818)\n",
      "train.csv:7550 (userId, eventId)=(2231607096, 1466704967)\n",
      "train.csv:7560 (userId, eventId)=(2233880590, 1943275101)\n",
      "train.csv:7570 (userId, eventId)=(2238460219, 3776957253)\n",
      "train.csv:7580 (userId, eventId)=(2238790970, 3210255076)\n",
      "train.csv:7590 (userId, eventId)=(2243065045, 994310148)\n",
      "train.csv:7600 (userId, eventId)=(2243396544, 1301302125)\n",
      "train.csv:7610 (userId, eventId)=(2244689014, 2522610844)\n",
      "train.csv:7620 (userId, eventId)=(2248506579, 2965867805)\n",
      "train.csv:7630 (userId, eventId)=(2249748129, 2456511255)\n",
      "train.csv:7640 (userId, eventId)=(2252845148, 2007279414)\n",
      "train.csv:7650 (userId, eventId)=(2254327912, 684266372)\n",
      "train.csv:7660 (userId, eventId)=(2254327912, 1927488321)\n",
      "train.csv:7670 (userId, eventId)=(2254352523, 95076039)\n",
      "train.csv:7680 (userId, eventId)=(2255113076, 3568507739)\n",
      "train.csv:7690 (userId, eventId)=(2257286686, 633659090)\n",
      "train.csv:7700 (userId, eventId)=(2259554717, 2479922984)\n",
      "train.csv:7710 (userId, eventId)=(2261578513, 3554433899)\n",
      "train.csv:7720 (userId, eventId)=(2264585544, 821546192)\n",
      "train.csv:7730 (userId, eventId)=(2264585544, 1359710437)\n",
      "train.csv:7740 (userId, eventId)=(2265864872, 642644408)\n",
      "train.csv:7750 (userId, eventId)=(2265899995, 2323267944)\n",
      "train.csv:7760 (userId, eventId)=(2271406145, 1488068589)\n",
      "train.csv:7770 (userId, eventId)=(2272634729, 2554987616)\n",
      "train.csv:7780 (userId, eventId)=(2278013791, 826165423)\n",
      "train.csv:7790 (userId, eventId)=(2282257791, 2130616732)\n",
      "train.csv:7800 (userId, eventId)=(2282422131, 1542381330)\n",
      "train.csv:7810 (userId, eventId)=(2282893903, 1205670273)\n",
      "train.csv:7820 (userId, eventId)=(2286248913, 3395117104)\n",
      "train.csv:7830 (userId, eventId)=(2290297293, 3776957253)\n",
      "train.csv:7840 (userId, eventId)=(2291885035, 633659090)\n",
      "train.csv:7850 (userId, eventId)=(2291885035, 2130616732)\n",
      "train.csv:7860 (userId, eventId)=(2298623317, 27733025)\n",
      "train.csv:7870 (userId, eventId)=(2312878118, 1361307272)\n",
      "train.csv:7880 (userId, eventId)=(2314166008, 989190365)\n",
      "train.csv:7890 (userId, eventId)=(2315042356, 2308433116)\n",
      "train.csv:7900 (userId, eventId)=(2319889082, 2384544175)\n",
      "train.csv:7910 (userId, eventId)=(2321074684, 2643833505)\n",
      "train.csv:7920 (userId, eventId)=(2325340243, 2304176660)\n",
      "train.csv:7930 (userId, eventId)=(2326463380, 4167704462)\n",
      "train.csv:7940 (userId, eventId)=(2328301807, 1082833698)\n",
      "train.csv:7950 (userId, eventId)=(2328481418, 3699419582)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:7960 (userId, eventId)=(2329661605, 2114371180)\n",
      "train.csv:7970 (userId, eventId)=(2329755329, 547383999)\n",
      "train.csv:7980 (userId, eventId)=(2332715028, 2149464820)\n",
      "train.csv:7990 (userId, eventId)=(2334852679, 1900681884)\n",
      "train.csv:8000 (userId, eventId)=(2338481531, 2525447278)\n",
      "train.csv:8010 (userId, eventId)=(2340199364, 2683439036)\n",
      "train.csv:8020 (userId, eventId)=(2342735753, 2529072432)\n",
      "train.csv:8030 (userId, eventId)=(2343762978, 3643004825)\n",
      "train.csv:8040 (userId, eventId)=(2344133160, 907302600)\n",
      "train.csv:8050 (userId, eventId)=(2348719537, 3801087697)\n",
      "train.csv:8060 (userId, eventId)=(2350981164, 4002798045)\n",
      "train.csv:8070 (userId, eventId)=(2353444142, 3047117217)\n",
      "train.csv:8080 (userId, eventId)=(2360121322, 2274620725)\n",
      "train.csv:8090 (userId, eventId)=(2375503792, 2098941988)\n",
      "train.csv:8100 (userId, eventId)=(2378571713, 3854862695)\n",
      "train.csv:8110 (userId, eventId)=(2381922770, 2129139974)\n",
      "train.csv:8120 (userId, eventId)=(2381922770, 2129139974)\n",
      "train.csv:8130 (userId, eventId)=(2383553413, 1159701801)\n",
      "train.csv:8140 (userId, eventId)=(2393365897, 2321729704)\n",
      "train.csv:8150 (userId, eventId)=(2394083016, 20272307)\n",
      "train.csv:8160 (userId, eventId)=(2399006053, 3578890149)\n",
      "train.csv:8170 (userId, eventId)=(2400147519, 3532539883)\n",
      "train.csv:8180 (userId, eventId)=(2403055502, 3581275802)\n",
      "train.csv:8190 (userId, eventId)=(2404499203, 62489876)\n",
      "train.csv:8200 (userId, eventId)=(2408246939, 3077993055)\n",
      "train.csv:8210 (userId, eventId)=(2409482937, 633659090)\n",
      "train.csv:8220 (userId, eventId)=(2415400273, 600647841)\n",
      "train.csv:8230 (userId, eventId)=(2416484731, 2218325768)\n",
      "train.csv:8240 (userId, eventId)=(2416903887, 2933717037)\n",
      "train.csv:8250 (userId, eventId)=(2419536569, 4125420656)\n",
      "train.csv:8260 (userId, eventId)=(2425859426, 1256918510)\n",
      "train.csv:8270 (userId, eventId)=(2436252940, 2115491671)\n",
      "train.csv:8280 (userId, eventId)=(2436389418, 774583783)\n",
      "train.csv:8290 (userId, eventId)=(2440023887, 1276702165)\n",
      "train.csv:8300 (userId, eventId)=(2440671055, 823015621)\n",
      "train.csv:8310 (userId, eventId)=(2444012189, 4110062919)\n",
      "train.csv:8320 (userId, eventId)=(2446596885, 1905968948)\n",
      "train.csv:8330 (userId, eventId)=(2448969855, 479218640)\n",
      "train.csv:8340 (userId, eventId)=(2449307177, 3181512475)\n",
      "train.csv:8350 (userId, eventId)=(2452785645, 2529072432)\n",
      "train.csv:8360 (userId, eventId)=(2456225582, 1555528731)\n",
      "train.csv:8370 (userId, eventId)=(2458053629, 1278854245)\n",
      "train.csv:8380 (userId, eventId)=(2458068456, 3144013743)\n",
      "train.csv:8390 (userId, eventId)=(2460812912, 1076364848)\n",
      "train.csv:8400 (userId, eventId)=(2463413235, 2498438372)\n",
      "train.csv:8410 (userId, eventId)=(2463864814, 3101776934)\n",
      "train.csv:8420 (userId, eventId)=(2464597212, 2030036850)\n",
      "train.csv:8430 (userId, eventId)=(2464597212, 2824096896)\n",
      "train.csv:8440 (userId, eventId)=(2465513009, 1153175316)\n",
      "train.csv:8450 (userId, eventId)=(2467706552, 3838044081)\n",
      "train.csv:8460 (userId, eventId)=(2473747678, 580141222)\n",
      "train.csv:8470 (userId, eventId)=(2480747202, 952519340)\n",
      "train.csv:8480 (userId, eventId)=(2483584418, 1596190412)\n",
      "train.csv:8490 (userId, eventId)=(2488018670, 1255629030)\n",
      "train.csv:8500 (userId, eventId)=(2489551967, 520657921)\n",
      "train.csv:8510 (userId, eventId)=(2490559498, 2299366787)\n",
      "train.csv:8520 (userId, eventId)=(2491957982, 1776393554)\n",
      "train.csv:8530 (userId, eventId)=(2493952533, 2152420806)\n",
      "train.csv:8540 (userId, eventId)=(2495407859, 93291131)\n",
      "train.csv:8550 (userId, eventId)=(2496550100, 3251813967)\n",
      "train.csv:8560 (userId, eventId)=(2500150280, 321597084)\n",
      "train.csv:8570 (userId, eventId)=(2501280523, 2073609284)\n",
      "train.csv:8580 (userId, eventId)=(2504328739, 2359252504)\n",
      "train.csv:8590 (userId, eventId)=(2512917389, 1902921043)\n",
      "train.csv:8600 (userId, eventId)=(2517213950, 1202898307)\n",
      "train.csv:8610 (userId, eventId)=(2522377610, 3867540008)\n",
      "train.csv:8620 (userId, eventId)=(2523562208, 3841472085)\n",
      "train.csv:8630 (userId, eventId)=(2536496919, 2577247101)\n",
      "train.csv:8640 (userId, eventId)=(2541238114, 3761092488)\n",
      "train.csv:8650 (userId, eventId)=(2543824082, 2691215697)\n",
      "train.csv:8660 (userId, eventId)=(2544817539, 2130616732)\n",
      "train.csv:8670 (userId, eventId)=(2545657612, 1069076071)\n",
      "train.csv:8680 (userId, eventId)=(2557219570, 411688154)\n",
      "train.csv:8690 (userId, eventId)=(2559434877, 496131340)\n",
      "train.csv:8700 (userId, eventId)=(2559754952, 4055258235)\n",
      "train.csv:8710 (userId, eventId)=(2559754952, 1589820024)\n",
      "train.csv:8720 (userId, eventId)=(2563679078, 3509100603)\n",
      "train.csv:8730 (userId, eventId)=(2566144998, 3988084859)\n",
      "train.csv:8740 (userId, eventId)=(2567514456, 2414358105)\n",
      "train.csv:8750 (userId, eventId)=(2571725299, 1262111436)\n",
      "train.csv:8760 (userId, eventId)=(2571895925, 3147640060)\n",
      "train.csv:8770 (userId, eventId)=(2572315833, 741936389)\n",
      "train.csv:8780 (userId, eventId)=(2577093097, 4104785185)\n",
      "train.csv:8790 (userId, eventId)=(2584536356, 3080870370)\n",
      "train.csv:8800 (userId, eventId)=(2590409583, 682567291)\n",
      "train.csv:8810 (userId, eventId)=(2593432040, 1845786756)\n",
      "train.csv:8820 (userId, eventId)=(2596513149, 4180447885)\n",
      "train.csv:8830 (userId, eventId)=(2597201802, 818142116)\n",
      "train.csv:8840 (userId, eventId)=(2600683125, 3036332464)\n",
      "train.csv:8850 (userId, eventId)=(2604497840, 2380651950)\n",
      "train.csv:8860 (userId, eventId)=(2610662061, 2354857659)\n",
      "train.csv:8870 (userId, eventId)=(2619163162, 3499428374)\n",
      "train.csv:8880 (userId, eventId)=(2623537385, 3086023208)\n",
      "train.csv:8890 (userId, eventId)=(2623537385, 3358183178)\n",
      "train.csv:8900 (userId, eventId)=(2624862533, 2149464820)\n",
      "train.csv:8910 (userId, eventId)=(2630238456, 2149464820)\n",
      "train.csv:8920 (userId, eventId)=(2633145288, 2149464820)\n",
      "train.csv:8930 (userId, eventId)=(2634481972, 673098017)\n",
      "train.csv:8940 (userId, eventId)=(2635547119, 2001335035)\n",
      "train.csv:8950 (userId, eventId)=(2638473114, 998267429)\n",
      "train.csv:8960 (userId, eventId)=(2638473114, 3191068419)\n",
      "train.csv:8970 (userId, eventId)=(2643058163, 1401069734)\n",
      "train.csv:8980 (userId, eventId)=(2644859372, 2413298858)\n",
      "train.csv:8990 (userId, eventId)=(2644859372, 2647215157)\n",
      "train.csv:9000 (userId, eventId)=(2650493630, 87962584)\n",
      "train.csv:9010 (userId, eventId)=(2659357596, 68667425)\n",
      "train.csv:9020 (userId, eventId)=(2667370728, 1043524551)\n",
      "train.csv:9030 (userId, eventId)=(2669808667, 1465929077)\n",
      "train.csv:9040 (userId, eventId)=(2671029253, 896121769)\n",
      "train.csv:9050 (userId, eventId)=(2673355078, 2168006553)\n",
      "train.csv:9060 (userId, eventId)=(2676225924, 326664129)\n",
      "train.csv:9070 (userId, eventId)=(2677559053, 3479309219)\n",
      "train.csv:9080 (userId, eventId)=(2680823346, 140337530)\n",
      "train.csv:9090 (userId, eventId)=(2681199273, 1600413013)\n",
      "train.csv:9100 (userId, eventId)=(2683024755, 2092805628)\n",
      "train.csv:9110 (userId, eventId)=(2684781446, 310993054)\n",
      "train.csv:9120 (userId, eventId)=(2690867178, 432158069)\n",
      "train.csv:9130 (userId, eventId)=(2692015370, 3597169763)\n",
      "train.csv:9140 (userId, eventId)=(2692979972, 1532377761)\n",
      "train.csv:9150 (userId, eventId)=(2694809416, 1731351853)\n",
      "train.csv:9160 (userId, eventId)=(2695530712, 3047285147)\n",
      "train.csv:9170 (userId, eventId)=(2701755218, 50227527)\n",
      "train.csv:9180 (userId, eventId)=(2706298619, 2654475121)\n",
      "train.csv:9190 (userId, eventId)=(2706413631, 3632072502)\n",
      "train.csv:9200 (userId, eventId)=(2711982636, 2067766968)\n",
      "train.csv:9210 (userId, eventId)=(2712853779, 519818482)\n",
      "train.csv:9220 (userId, eventId)=(2713603391, 122777568)\n",
      "train.csv:9230 (userId, eventId)=(2718796148, 1723821298)\n",
      "train.csv:9240 (userId, eventId)=(2721011967, 3849306291)\n",
      "train.csv:9250 (userId, eventId)=(2722968909, 3536426515)\n",
      "train.csv:9260 (userId, eventId)=(2724319931, 2073609284)\n",
      "train.csv:9270 (userId, eventId)=(2727221059, 3589097685)\n",
      "train.csv:9280 (userId, eventId)=(2728047278, 1338321138)\n",
      "train.csv:9290 (userId, eventId)=(2736679402, 899419077)\n",
      "train.csv:9300 (userId, eventId)=(2740017993, 3617750746)\n",
      "train.csv:9310 (userId, eventId)=(2744115938, 782683695)\n",
      "train.csv:9320 (userId, eventId)=(2746088407, 3442103541)\n",
      "train.csv:9330 (userId, eventId)=(2756550887, 2528133963)\n",
      "train.csv:9340 (userId, eventId)=(2756550887, 2548272502)\n",
      "train.csv:9350 (userId, eventId)=(2761832946, 3179047450)\n",
      "train.csv:9360 (userId, eventId)=(2763959582, 1390707377)\n",
      "train.csv:9370 (userId, eventId)=(2764881224, 3400311907)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:9380 (userId, eventId)=(2766269208, 3576586766)\n",
      "train.csv:9390 (userId, eventId)=(2766269208, 1510744133)\n",
      "train.csv:9400 (userId, eventId)=(2768571751, 1570416070)\n",
      "train.csv:9410 (userId, eventId)=(2771438232, 95759437)\n",
      "train.csv:9420 (userId, eventId)=(2772609387, 2389263741)\n",
      "train.csv:9430 (userId, eventId)=(2774351000, 261646692)\n",
      "train.csv:9440 (userId, eventId)=(2780094512, 3342889803)\n",
      "train.csv:9450 (userId, eventId)=(2787327616, 1617947886)\n",
      "train.csv:9460 (userId, eventId)=(2787637778, 1269035551)\n",
      "train.csv:9470 (userId, eventId)=(2788859591, 3256009463)\n",
      "train.csv:9480 (userId, eventId)=(2789880308, 741936389)\n",
      "train.csv:9490 (userId, eventId)=(2791418962, 3199229320)\n",
      "train.csv:9500 (userId, eventId)=(2791418962, 4223848259)\n",
      "train.csv:9510 (userId, eventId)=(2792856754, 52246840)\n",
      "train.csv:9520 (userId, eventId)=(2794470551, 3768680031)\n",
      "train.csv:9530 (userId, eventId)=(2796038131, 4063572110)\n",
      "train.csv:9540 (userId, eventId)=(2804635189, 1164582156)\n",
      "train.csv:9550 (userId, eventId)=(2805293886, 2007279414)\n",
      "train.csv:9560 (userId, eventId)=(2810188071, 2149464820)\n",
      "train.csv:9570 (userId, eventId)=(2815688436, 3554433899)\n",
      "train.csv:9580 (userId, eventId)=(2815688436, 386313069)\n",
      "train.csv:9590 (userId, eventId)=(2817061625, 1448086840)\n",
      "train.csv:9600 (userId, eventId)=(2818464367, 823015621)\n",
      "train.csv:9610 (userId, eventId)=(2823307221, 990580500)\n",
      "train.csv:9620 (userId, eventId)=(2827067982, 3462111166)\n",
      "train.csv:9630 (userId, eventId)=(2833011810, 1269035551)\n",
      "train.csv:9640 (userId, eventId)=(2835299246, 1448086840)\n",
      "train.csv:9650 (userId, eventId)=(2836886911, 2776357538)\n",
      "train.csv:9660 (userId, eventId)=(2837984655, 793677521)\n",
      "train.csv:9670 (userId, eventId)=(2837984655, 44040604)\n",
      "train.csv:9680 (userId, eventId)=(2838808644, 1426337764)\n",
      "train.csv:9690 (userId, eventId)=(2842187594, 516796945)\n",
      "train.csv:9700 (userId, eventId)=(2842951963, 3571352784)\n",
      "train.csv:9710 (userId, eventId)=(2844491503, 628221713)\n",
      "train.csv:9720 (userId, eventId)=(2848481402, 3154515824)\n",
      "train.csv:9730 (userId, eventId)=(2849010050, 3265692358)\n",
      "train.csv:9740 (userId, eventId)=(2849010050, 3609066121)\n",
      "train.csv:9750 (userId, eventId)=(2852759815, 3972013386)\n",
      "train.csv:9760 (userId, eventId)=(2855659739, 3565166403)\n",
      "train.csv:9770 (userId, eventId)=(2856937853, 2378391360)\n",
      "train.csv:9780 (userId, eventId)=(2858284447, 4126400680)\n",
      "train.csv:9790 (userId, eventId)=(2858284447, 2717619434)\n",
      "train.csv:9800 (userId, eventId)=(2858760089, 3137529595)\n",
      "train.csv:9810 (userId, eventId)=(2862718608, 2118726451)\n",
      "train.csv:9820 (userId, eventId)=(2864836500, 3461621159)\n",
      "train.csv:9830 (userId, eventId)=(2864899561, 1783630773)\n",
      "train.csv:9840 (userId, eventId)=(2874765790, 2498491194)\n",
      "train.csv:9850 (userId, eventId)=(2878084097, 504450213)\n",
      "train.csv:9860 (userId, eventId)=(2879905973, 2422810156)\n",
      "train.csv:9870 (userId, eventId)=(2884249863, 2529072432)\n",
      "train.csv:9880 (userId, eventId)=(2885761776, 1732452113)\n",
      "train.csv:9890 (userId, eventId)=(2888420415, 4081195893)\n",
      "train.csv:9900 (userId, eventId)=(2890295436, 1273761447)\n",
      "train.csv:9910 (userId, eventId)=(2890467561, 3610905380)\n",
      "train.csv:9920 (userId, eventId)=(2892947506, 907302600)\n",
      "train.csv:9930 (userId, eventId)=(2893327845, 3309338938)\n",
      "train.csv:9940 (userId, eventId)=(2895220130, 1351516910)\n",
      "train.csv:9950 (userId, eventId)=(2895220130, 3865518711)\n",
      "train.csv:9960 (userId, eventId)=(2895220130, 2090625059)\n",
      "train.csv:9970 (userId, eventId)=(2902208687, 3982727529)\n",
      "train.csv:9980 (userId, eventId)=(2903662804, 1936956555)\n",
      "train.csv:9990 (userId, eventId)=(2903662804, 2998958650)\n",
      "train.csv:10000 (userId, eventId)=(2903662804, 2791462807)\n",
      "train.csv:10010 (userId, eventId)=(2903662804, 3063189490)\n",
      "train.csv:10020 (userId, eventId)=(2903662804, 2862031808)\n",
      "train.csv:10030 (userId, eventId)=(2903662804, 1074416596)\n",
      "train.csv:10040 (userId, eventId)=(2903662804, 1977475739)\n",
      "train.csv:10050 (userId, eventId)=(2903662804, 874736953)\n",
      "train.csv:10060 (userId, eventId)=(2903662804, 344410172)\n",
      "train.csv:10070 (userId, eventId)=(2912946138, 2079744277)\n",
      "train.csv:10080 (userId, eventId)=(2914443596, 2284410316)\n",
      "train.csv:10090 (userId, eventId)=(2916716118, 1689413780)\n",
      "train.csv:10100 (userId, eventId)=(2919431452, 2045363335)\n",
      "train.csv:10110 (userId, eventId)=(2921156307, 3527773293)\n",
      "train.csv:10120 (userId, eventId)=(2925400415, 3632072502)\n",
      "train.csv:10130 (userId, eventId)=(2928822295, 2168553474)\n",
      "train.csv:10140 (userId, eventId)=(2932861723, 3842362115)\n",
      "train.csv:10150 (userId, eventId)=(2936209614, 1872758613)\n",
      "train.csv:10160 (userId, eventId)=(2936324533, 1177495191)\n",
      "train.csv:10170 (userId, eventId)=(2937549539, 3108893200)\n",
      "train.csv:10180 (userId, eventId)=(2939775948, 2988656322)\n",
      "train.csv:10190 (userId, eventId)=(2940390801, 1802524531)\n",
      "train.csv:10200 (userId, eventId)=(2940917694, 1969283585)\n",
      "train.csv:10210 (userId, eventId)=(2941044791, 1731945792)\n",
      "train.csv:10220 (userId, eventId)=(2944246732, 1816813281)\n",
      "train.csv:10230 (userId, eventId)=(2946269473, 2865586777)\n",
      "train.csv:10240 (userId, eventId)=(2949537983, 2769570008)\n",
      "train.csv:10250 (userId, eventId)=(2949537983, 4053437619)\n",
      "train.csv:10260 (userId, eventId)=(2949876199, 3183605169)\n",
      "train.csv:10270 (userId, eventId)=(2954864792, 1656749821)\n",
      "train.csv:10280 (userId, eventId)=(2954864792, 3417632652)\n",
      "train.csv:10290 (userId, eventId)=(2957852218, 3281109970)\n",
      "train.csv:10300 (userId, eventId)=(2962659545, 810618772)\n",
      "train.csv:10310 (userId, eventId)=(2962725194, 1269035551)\n",
      "train.csv:10320 (userId, eventId)=(2971846635, 3708212410)\n",
      "train.csv:10330 (userId, eventId)=(2971889961, 1333552095)\n",
      "train.csv:10340 (userId, eventId)=(2978622176, 3841472085)\n",
      "train.csv:10350 (userId, eventId)=(2979487597, 741936389)\n",
      "train.csv:10360 (userId, eventId)=(2981133909, 2741999232)\n",
      "train.csv:10370 (userId, eventId)=(2984260178, 3617812300)\n",
      "train.csv:10380 (userId, eventId)=(2985391759, 497198144)\n",
      "train.csv:10390 (userId, eventId)=(2987144847, 1466704967)\n",
      "train.csv:10400 (userId, eventId)=(2989025224, 1600413013)\n",
      "train.csv:10410 (userId, eventId)=(2993320562, 1601916220)\n",
      "train.csv:10420 (userId, eventId)=(2995967526, 1910411667)\n",
      "train.csv:10430 (userId, eventId)=(3004312073, 1776393554)\n",
      "train.csv:10440 (userId, eventId)=(3005728385, 460661301)\n",
      "train.csv:10450 (userId, eventId)=(3009580143, 2922291236)\n",
      "train.csv:10460 (userId, eventId)=(3021411633, 3480624055)\n",
      "train.csv:10470 (userId, eventId)=(3031242464, 2635162962)\n",
      "train.csv:10480 (userId, eventId)=(3035544663, 1065767123)\n",
      "train.csv:10490 (userId, eventId)=(3035853030, 1849550758)\n",
      "train.csv:10500 (userId, eventId)=(3036141956, 3929507420)\n",
      "train.csv:10510 (userId, eventId)=(3037654114, 2465528861)\n",
      "train.csv:10520 (userId, eventId)=(3038024163, 2955430444)\n",
      "train.csv:10530 (userId, eventId)=(3039417842, 3526283495)\n",
      "train.csv:10540 (userId, eventId)=(3039417842, 1573329057)\n",
      "train.csv:10550 (userId, eventId)=(3041705231, 2873343645)\n",
      "train.csv:10560 (userId, eventId)=(3042360462, 137279329)\n",
      "train.csv:10570 (userId, eventId)=(3043278753, 1969993396)\n",
      "train.csv:10580 (userId, eventId)=(3043291654, 2935869426)\n",
      "train.csv:10590 (userId, eventId)=(3052191172, 3609305791)\n",
      "train.csv:10600 (userId, eventId)=(3052673147, 830183321)\n",
      "train.csv:10610 (userId, eventId)=(3054205479, 3658812660)\n",
      "train.csv:10620 (userId, eventId)=(3061307316, 4265299106)\n",
      "train.csv:10630 (userId, eventId)=(3064452030, 3648708700)\n",
      "train.csv:10640 (userId, eventId)=(3069569833, 998521698)\n",
      "train.csv:10650 (userId, eventId)=(3071093998, 606020229)\n",
      "train.csv:10660 (userId, eventId)=(3071252660, 3196108932)\n",
      "train.csv:10670 (userId, eventId)=(3071657222, 1621860415)\n",
      "train.csv:10680 (userId, eventId)=(3076967009, 1448086840)\n",
      "train.csv:10690 (userId, eventId)=(3078024483, 615488222)\n",
      "train.csv:10700 (userId, eventId)=(3084096535, 290357106)\n",
      "train.csv:10710 (userId, eventId)=(3091527231, 890019369)\n",
      "train.csv:10720 (userId, eventId)=(3095718598, 2654741087)\n",
      "train.csv:10730 (userId, eventId)=(3096870348, 2548272502)\n",
      "train.csv:10740 (userId, eventId)=(3098511794, 1361307272)\n",
      "train.csv:10750 (userId, eventId)=(3102217094, 670599422)\n",
      "train.csv:10760 (userId, eventId)=(3104132371, 3869571263)\n",
      "train.csv:10770 (userId, eventId)=(3108358241, 927505727)\n",
      "train.csv:10780 (userId, eventId)=(3108358241, 3051088984)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:10790 (userId, eventId)=(3108480638, 608092517)\n",
      "train.csv:10800 (userId, eventId)=(3115928657, 2149464820)\n",
      "train.csv:10810 (userId, eventId)=(3117046697, 1902753965)\n",
      "train.csv:10820 (userId, eventId)=(3118938050, 862976415)\n",
      "train.csv:10830 (userId, eventId)=(3122183291, 1544421101)\n",
      "train.csv:10840 (userId, eventId)=(3123500032, 2212723194)\n",
      "train.csv:10850 (userId, eventId)=(3123712598, 1203717384)\n",
      "train.csv:10860 (userId, eventId)=(3138635490, 875529449)\n",
      "train.csv:10870 (userId, eventId)=(3142327997, 2054616566)\n",
      "train.csv:10880 (userId, eventId)=(3147626282, 828104990)\n",
      "train.csv:10890 (userId, eventId)=(3147626282, 2847152365)\n",
      "train.csv:10900 (userId, eventId)=(3147626282, 3745079581)\n",
      "train.csv:10910 (userId, eventId)=(3148555709, 1167949960)\n",
      "train.csv:10920 (userId, eventId)=(3151272434, 3710909677)\n",
      "train.csv:10930 (userId, eventId)=(3155504635, 1521958638)\n",
      "train.csv:10940 (userId, eventId)=(3157328676, 703370904)\n",
      "train.csv:10950 (userId, eventId)=(3165928866, 992561323)\n",
      "train.csv:10960 (userId, eventId)=(3167658465, 1893794468)\n",
      "train.csv:10970 (userId, eventId)=(3169024744, 582041333)\n",
      "train.csv:10980 (userId, eventId)=(3172189947, 955398943)\n",
      "train.csv:10990 (userId, eventId)=(3175354507, 955398943)\n",
      "train.csv:11000 (userId, eventId)=(3176074542, 3459485614)\n",
      "train.csv:11010 (userId, eventId)=(3180412264, 1011709249)\n",
      "train.csv:11020 (userId, eventId)=(3180412264, 4228454268)\n",
      "train.csv:11030 (userId, eventId)=(3180412264, 787562214)\n",
      "train.csv:11040 (userId, eventId)=(3180412264, 832412932)\n",
      "train.csv:11050 (userId, eventId)=(3180412264, 2798408743)\n",
      "train.csv:11060 (userId, eventId)=(3182595870, 894829625)\n",
      "train.csv:11070 (userId, eventId)=(3186268838, 1448086840)\n",
      "train.csv:11080 (userId, eventId)=(3186577794, 1926323783)\n",
      "train.csv:11090 (userId, eventId)=(3188496109, 623506969)\n",
      "train.csv:11100 (userId, eventId)=(3191212256, 1465929077)\n",
      "train.csv:11110 (userId, eventId)=(3191212256, 1665437357)\n",
      "train.csv:11120 (userId, eventId)=(3193697919, 1068793163)\n",
      "train.csv:11130 (userId, eventId)=(3194014105, 3314895954)\n",
      "train.csv:11140 (userId, eventId)=(3196759129, 563069256)\n",
      "train.csv:11150 (userId, eventId)=(3198801990, 496369519)\n",
      "train.csv:11160 (userId, eventId)=(3199368063, 2045816822)\n",
      "train.csv:11170 (userId, eventId)=(3199368063, 1036990545)\n",
      "train.csv:11180 (userId, eventId)=(3205053921, 858587465)\n",
      "train.csv:11190 (userId, eventId)=(3208908819, 2621503414)\n",
      "train.csv:11200 (userId, eventId)=(3210206992, 1662125407)\n",
      "train.csv:11210 (userId, eventId)=(3210947692, 2828969498)\n",
      "train.csv:11220 (userId, eventId)=(3221482892, 130493588)\n",
      "train.csv:11230 (userId, eventId)=(3222079869, 1646459906)\n",
      "train.csv:11240 (userId, eventId)=(3223036396, 3382266244)\n",
      "train.csv:11250 (userId, eventId)=(3227661980, 2681780384)\n",
      "train.csv:11260 (userId, eventId)=(3228579807, 1503247688)\n",
      "train.csv:11270 (userId, eventId)=(3231004341, 2133183406)\n",
      "train.csv:11280 (userId, eventId)=(3235544076, 2038842201)\n",
      "train.csv:11290 (userId, eventId)=(3239836164, 2643833505)\n",
      "train.csv:11300 (userId, eventId)=(3239836164, 2130616732)\n",
      "train.csv:11310 (userId, eventId)=(3240337776, 2772929791)\n",
      "train.csv:11320 (userId, eventId)=(3242215738, 843844488)\n",
      "train.csv:11330 (userId, eventId)=(3245391379, 1977169313)\n",
      "train.csv:11340 (userId, eventId)=(3245671824, 1944996876)\n",
      "train.csv:11350 (userId, eventId)=(3251568850, 1133385189)\n",
      "train.csv:11360 (userId, eventId)=(3252326922, 1294433853)\n",
      "train.csv:11370 (userId, eventId)=(3253486500, 1985822680)\n",
      "train.csv:11380 (userId, eventId)=(3256961152, 1269035551)\n",
      "train.csv:11390 (userId, eventId)=(3257224121, 1600413013)\n",
      "train.csv:11400 (userId, eventId)=(3258281955, 633659090)\n",
      "train.csv:11410 (userId, eventId)=(3258281955, 1133385189)\n",
      "train.csv:11420 (userId, eventId)=(3261632504, 2692750246)\n",
      "train.csv:11430 (userId, eventId)=(3261647162, 2130616732)\n",
      "train.csv:11440 (userId, eventId)=(3272389348, 3098644886)\n",
      "train.csv:11450 (userId, eventId)=(3276463946, 1261557576)\n",
      "train.csv:11460 (userId, eventId)=(3278092752, 621556981)\n",
      "train.csv:11470 (userId, eventId)=(3279257076, 1641491432)\n",
      "train.csv:11480 (userId, eventId)=(3279316025, 364572656)\n",
      "train.csv:11490 (userId, eventId)=(3282950773, 2529072432)\n",
      "train.csv:11500 (userId, eventId)=(3285425249, 2271782630)\n",
      "train.csv:11510 (userId, eventId)=(3286878858, 554606633)\n",
      "train.csv:11520 (userId, eventId)=(3289417890, 1203119679)\n",
      "train.csv:11530 (userId, eventId)=(3289417890, 4110062919)\n",
      "train.csv:11540 (userId, eventId)=(3291092348, 1269035551)\n",
      "train.csv:11550 (userId, eventId)=(3292982761, 2180806657)\n",
      "train.csv:11560 (userId, eventId)=(3294080054, 899234866)\n",
      "train.csv:11570 (userId, eventId)=(3297493554, 1889940073)\n",
      "train.csv:11580 (userId, eventId)=(3298977709, 4080537914)\n",
      "train.csv:11590 (userId, eventId)=(3299562450, 561449801)\n",
      "train.csv:11600 (userId, eventId)=(3300092451, 2492936252)\n",
      "train.csv:11610 (userId, eventId)=(3308173668, 3264734489)\n",
      "train.csv:11620 (userId, eventId)=(3310268237, 516796945)\n",
      "train.csv:11630 (userId, eventId)=(3315282129, 1816813281)\n",
      "train.csv:11640 (userId, eventId)=(3316008620, 4020623879)\n",
      "train.csv:11650 (userId, eventId)=(3316715342, 4050261217)\n",
      "train.csv:11660 (userId, eventId)=(3316715342, 2273085791)\n",
      "train.csv:11670 (userId, eventId)=(3318646261, 719337372)\n",
      "train.csv:11680 (userId, eventId)=(3325628838, 3797841998)\n",
      "train.csv:11690 (userId, eventId)=(3326031604, 2149464820)\n",
      "train.csv:11700 (userId, eventId)=(3330061773, 1730523109)\n",
      "train.csv:11710 (userId, eventId)=(3330927216, 3770119781)\n",
      "train.csv:11720 (userId, eventId)=(3333431092, 2411782898)\n",
      "train.csv:11730 (userId, eventId)=(3336438888, 2803195749)\n",
      "train.csv:11740 (userId, eventId)=(3338812734, 1606098756)\n",
      "train.csv:11750 (userId, eventId)=(3348417635, 1044854627)\n",
      "train.csv:11760 (userId, eventId)=(3350047181, 3618747219)\n",
      "train.csv:11770 (userId, eventId)=(3350877536, 1442934258)\n",
      "train.csv:11780 (userId, eventId)=(3357905099, 1242636641)\n",
      "train.csv:11790 (userId, eventId)=(3362701480, 4227563271)\n",
      "train.csv:11800 (userId, eventId)=(3365349866, 4162137499)\n",
      "train.csv:11810 (userId, eventId)=(3365445357, 3429508261)\n",
      "train.csv:11820 (userId, eventId)=(3368369538, 1093844070)\n",
      "train.csv:11830 (userId, eventId)=(3368619983, 982259262)\n",
      "train.csv:11840 (userId, eventId)=(3376988073, 3300948291)\n",
      "train.csv:11850 (userId, eventId)=(3378002804, 3382083674)\n",
      "train.csv:11860 (userId, eventId)=(3383460510, 1750662196)\n",
      "train.csv:11870 (userId, eventId)=(3388914512, 1999425207)\n",
      "train.csv:11880 (userId, eventId)=(3389282421, 1592715278)\n",
      "train.csv:11890 (userId, eventId)=(3389773360, 2776927174)\n",
      "train.csv:11900 (userId, eventId)=(3390146258, 4106186736)\n",
      "train.csv:11910 (userId, eventId)=(3391264132, 2007279414)\n",
      "train.csv:11920 (userId, eventId)=(3395187066, 162042943)\n",
      "train.csv:11930 (userId, eventId)=(3395257600, 1677401781)\n",
      "train.csv:11940 (userId, eventId)=(3404441712, 1076364848)\n",
      "train.csv:11950 (userId, eventId)=(3406326706, 1953807601)\n",
      "train.csv:11960 (userId, eventId)=(3406326706, 3603231279)\n",
      "train.csv:11970 (userId, eventId)=(3406326706, 3181199808)\n",
      "train.csv:11980 (userId, eventId)=(3406326706, 3570341326)\n",
      "train.csv:11990 (userId, eventId)=(3408163802, 640515130)\n",
      "train.csv:12000 (userId, eventId)=(3410667855, 1063772489)\n",
      "train.csv:12010 (userId, eventId)=(3415673411, 3126587697)\n",
      "train.csv:12020 (userId, eventId)=(3418659271, 2554767933)\n",
      "train.csv:12030 (userId, eventId)=(3419376657, 1011764733)\n",
      "train.csv:12040 (userId, eventId)=(3422212913, 1118304365)\n",
      "train.csv:12050 (userId, eventId)=(3427056824, 1699561506)\n",
      "train.csv:12060 (userId, eventId)=(3427263623, 3480624055)\n",
      "train.csv:12070 (userId, eventId)=(3430986998, 2529072432)\n",
      "train.csv:12080 (userId, eventId)=(3435412352, 928532134)\n",
      "train.csv:12090 (userId, eventId)=(3436715440, 1390707377)\n",
      "train.csv:12100 (userId, eventId)=(3442212683, 4260493070)\n",
      "train.csv:12110 (userId, eventId)=(3452705349, 3867467983)\n",
      "train.csv:12120 (userId, eventId)=(3456890538, 1064673516)\n",
      "train.csv:12130 (userId, eventId)=(3459927853, 4080944038)\n",
      "train.csv:12140 (userId, eventId)=(3459927853, 2007279414)\n",
      "train.csv:12150 (userId, eventId)=(3460014666, 3643004825)\n",
      "train.csv:12160 (userId, eventId)=(3461518589, 3178572875)\n",
      "train.csv:12170 (userId, eventId)=(3464554032, 2777472459)\n",
      "train.csv:12180 (userId, eventId)=(3464961116, 4273898950)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:12190 (userId, eventId)=(3466521212, 3777087288)\n",
      "train.csv:12200 (userId, eventId)=(3467140948, 1532377761)\n",
      "train.csv:12210 (userId, eventId)=(3467307298, 3756572732)\n",
      "train.csv:12220 (userId, eventId)=(3471761709, 10609218)\n",
      "train.csv:12230 (userId, eventId)=(3474900298, 734470389)\n",
      "train.csv:12240 (userId, eventId)=(3477857993, 4233032010)\n",
      "train.csv:12250 (userId, eventId)=(3481743878, 810535696)\n",
      "train.csv:12260 (userId, eventId)=(3486057072, 1742345117)\n",
      "train.csv:12270 (userId, eventId)=(3486057072, 767782490)\n",
      "train.csv:12280 (userId, eventId)=(3486057072, 3438779574)\n",
      "train.csv:12290 (userId, eventId)=(3488552280, 2298040175)\n",
      "train.csv:12300 (userId, eventId)=(3500240032, 268233790)\n",
      "train.csv:12310 (userId, eventId)=(3502990892, 3950589515)\n",
      "train.csv:12320 (userId, eventId)=(3504006486, 3930077968)\n",
      "train.csv:12330 (userId, eventId)=(3504868122, 907302600)\n",
      "train.csv:12340 (userId, eventId)=(3505511916, 1451401793)\n",
      "train.csv:12350 (userId, eventId)=(3507534894, 327075228)\n",
      "train.csv:12360 (userId, eventId)=(3508414044, 396853098)\n",
      "train.csv:12370 (userId, eventId)=(3511417249, 2120604435)\n",
      "train.csv:12380 (userId, eventId)=(3513858183, 2007279414)\n",
      "train.csv:12390 (userId, eventId)=(3514195773, 2758697837)\n",
      "train.csv:12400 (userId, eventId)=(3514195773, 2648192028)\n",
      "train.csv:12410 (userId, eventId)=(3514195773, 100417525)\n",
      "train.csv:12420 (userId, eventId)=(3514195773, 670542615)\n",
      "train.csv:12430 (userId, eventId)=(3514195773, 1379777527)\n",
      "train.csv:12440 (userId, eventId)=(3515391844, 1462902079)\n",
      "train.csv:12450 (userId, eventId)=(3519657066, 1752177173)\n",
      "train.csv:12460 (userId, eventId)=(3519657066, 3465774683)\n",
      "train.csv:12470 (userId, eventId)=(3521411736, 2149464820)\n",
      "train.csv:12480 (userId, eventId)=(3525941406, 3480624055)\n",
      "train.csv:12490 (userId, eventId)=(3530946278, 2401458775)\n",
      "train.csv:12500 (userId, eventId)=(3531604778, 2584839423)\n",
      "train.csv:12510 (userId, eventId)=(3535608264, 1914791953)\n",
      "train.csv:12520 (userId, eventId)=(3535608264, 140337530)\n",
      "train.csv:12530 (userId, eventId)=(3536031836, 3434717258)\n",
      "train.csv:12540 (userId, eventId)=(3548214416, 2788558897)\n",
      "train.csv:12550 (userId, eventId)=(3554343061, 258916451)\n",
      "train.csv:12560 (userId, eventId)=(3554586211, 3463560786)\n",
      "train.csv:12570 (userId, eventId)=(3555067038, 1043517381)\n",
      "train.csv:12580 (userId, eventId)=(3556981605, 268233790)\n",
      "train.csv:12590 (userId, eventId)=(3563882371, 1940265937)\n",
      "train.csv:12600 (userId, eventId)=(3565456636, 4058034322)\n",
      "train.csv:12610 (userId, eventId)=(3567042309, 2308372833)\n",
      "train.csv:12620 (userId, eventId)=(3573650571, 2149464820)\n",
      "train.csv:12630 (userId, eventId)=(3573906831, 3776957253)\n",
      "train.csv:12640 (userId, eventId)=(3587335204, 1848091116)\n",
      "train.csv:12650 (userId, eventId)=(3591151863, 485696274)\n",
      "train.csv:12660 (userId, eventId)=(3592311259, 3643257179)\n",
      "train.csv:12670 (userId, eventId)=(3594731327, 2219144892)\n",
      "train.csv:12680 (userId, eventId)=(3594879390, 995077958)\n",
      "train.csv:12690 (userId, eventId)=(3597496510, 189463573)\n",
      "train.csv:12700 (userId, eventId)=(3598524699, 3790866767)\n",
      "train.csv:12710 (userId, eventId)=(3598881287, 3701547443)\n",
      "train.csv:12720 (userId, eventId)=(3601021922, 17653480)\n",
      "train.csv:12730 (userId, eventId)=(3601181201, 1068825763)\n",
      "train.csv:12740 (userId, eventId)=(3611774179, 218221722)\n",
      "train.csv:12750 (userId, eventId)=(3614158257, 3463879879)\n",
      "train.csv:12760 (userId, eventId)=(3614812788, 3856652715)\n",
      "train.csv:12770 (userId, eventId)=(3616389778, 1734795794)\n",
      "train.csv:12780 (userId, eventId)=(3616798795, 40744964)\n",
      "train.csv:12790 (userId, eventId)=(3617843828, 3309338938)\n",
      "train.csv:12800 (userId, eventId)=(3621549603, 435263339)\n",
      "train.csv:12810 (userId, eventId)=(3622262372, 1205670273)\n",
      "train.csv:12820 (userId, eventId)=(3625917937, 1517979198)\n",
      "train.csv:12830 (userId, eventId)=(3626957091, 3158491291)\n",
      "train.csv:12840 (userId, eventId)=(3627421819, 3374990111)\n",
      "train.csv:12850 (userId, eventId)=(3631889944, 633659090)\n",
      "train.csv:12860 (userId, eventId)=(3633091100, 1819998447)\n",
      "train.csv:12870 (userId, eventId)=(3641159022, 2436047663)\n",
      "train.csv:12880 (userId, eventId)=(3642118045, 150733034)\n",
      "train.csv:12890 (userId, eventId)=(3646961870, 392004313)\n",
      "train.csv:12900 (userId, eventId)=(3654861045, 1700908753)\n",
      "train.csv:12910 (userId, eventId)=(3657335672, 268233790)\n",
      "train.csv:12920 (userId, eventId)=(3663559651, 1738181791)\n",
      "train.csv:12930 (userId, eventId)=(3663573906, 3244133531)\n",
      "train.csv:12940 (userId, eventId)=(3669048335, 1390707377)\n",
      "train.csv:12950 (userId, eventId)=(3669515588, 2529072432)\n",
      "train.csv:12960 (userId, eventId)=(3670434254, 1183719416)\n",
      "train.csv:12970 (userId, eventId)=(3676872343, 2153037761)\n",
      "train.csv:12980 (userId, eventId)=(3680140922, 2311007113)\n",
      "train.csv:12990 (userId, eventId)=(3681459280, 3309338938)\n",
      "train.csv:13000 (userId, eventId)=(3686871863, 53495098)\n",
      "train.csv:13010 (userId, eventId)=(3691949299, 1426337764)\n",
      "train.csv:13020 (userId, eventId)=(3695179498, 1768535020)\n",
      "train.csv:13030 (userId, eventId)=(3697489067, 333353849)\n",
      "train.csv:13040 (userId, eventId)=(3699893563, 4025174474)\n",
      "train.csv:13050 (userId, eventId)=(3702967330, 3305490944)\n",
      "train.csv:13060 (userId, eventId)=(3709066919, 2094952127)\n",
      "train.csv:13070 (userId, eventId)=(3711334312, 1538451457)\n",
      "train.csv:13080 (userId, eventId)=(3715196259, 242495922)\n",
      "train.csv:13090 (userId, eventId)=(3719137321, 3796724403)\n",
      "train.csv:13100 (userId, eventId)=(3721561384, 834360181)\n",
      "train.csv:13110 (userId, eventId)=(3723896394, 1600413013)\n",
      "train.csv:13120 (userId, eventId)=(3724535659, 1902753965)\n",
      "train.csv:13130 (userId, eventId)=(3725766398, 1492218856)\n",
      "train.csv:13140 (userId, eventId)=(3732091250, 711904904)\n",
      "train.csv:13150 (userId, eventId)=(3734794530, 2666796755)\n",
      "train.csv:13160 (userId, eventId)=(3739086221, 98340253)\n",
      "train.csv:13170 (userId, eventId)=(3751606951, 586161770)\n",
      "train.csv:13180 (userId, eventId)=(3751635372, 1993111201)\n",
      "train.csv:13190 (userId, eventId)=(3752474458, 1560461306)\n",
      "train.csv:13200 (userId, eventId)=(3757971767, 1873532916)\n",
      "train.csv:13210 (userId, eventId)=(3761442030, 4030786582)\n",
      "train.csv:13220 (userId, eventId)=(3761533297, 2809906088)\n",
      "train.csv:13230 (userId, eventId)=(3766417922, 2241772502)\n",
      "train.csv:13240 (userId, eventId)=(3770864710, 2428145712)\n",
      "train.csv:13250 (userId, eventId)=(3771702031, 627338344)\n",
      "train.csv:13260 (userId, eventId)=(3775078143, 2504283564)\n",
      "train.csv:13270 (userId, eventId)=(3779883288, 3643004825)\n",
      "train.csv:13280 (userId, eventId)=(3780551356, 312946086)\n",
      "train.csv:13290 (userId, eventId)=(3787931088, 2073339412)\n",
      "train.csv:13300 (userId, eventId)=(3788009173, 1977909542)\n",
      "train.csv:13310 (userId, eventId)=(3793249811, 923910543)\n",
      "train.csv:13320 (userId, eventId)=(3793812304, 445373500)\n",
      "train.csv:13330 (userId, eventId)=(3798379681, 559618821)\n",
      "train.csv:13340 (userId, eventId)=(3799386472, 3552123379)\n",
      "train.csv:13350 (userId, eventId)=(3799854455, 907302600)\n",
      "train.csv:13360 (userId, eventId)=(3803479601, 861118590)\n",
      "train.csv:13370 (userId, eventId)=(3804509987, 3394241819)\n",
      "train.csv:13380 (userId, eventId)=(3811264923, 955398943)\n",
      "train.csv:13390 (userId, eventId)=(3813354209, 1448086840)\n",
      "train.csv:13400 (userId, eventId)=(3815063730, 1667438718)\n",
      "train.csv:13410 (userId, eventId)=(3816191065, 169151840)\n",
      "train.csv:13420 (userId, eventId)=(3818876690, 2877314442)\n",
      "train.csv:13430 (userId, eventId)=(3818890017, 940261225)\n",
      "train.csv:13440 (userId, eventId)=(3820521570, 55793348)\n",
      "train.csv:13450 (userId, eventId)=(3823320698, 2149464820)\n",
      "train.csv:13460 (userId, eventId)=(3828329584, 1851896511)\n",
      "train.csv:13470 (userId, eventId)=(3828329584, 1583676682)\n",
      "train.csv:13480 (userId, eventId)=(3833425001, 1684415115)\n",
      "train.csv:13490 (userId, eventId)=(3833425001, 3650969064)\n",
      "train.csv:13500 (userId, eventId)=(3833637800, 2415873572)\n",
      "train.csv:13510 (userId, eventId)=(3833637800, 1741634425)\n",
      "train.csv:13520 (userId, eventId)=(3834655845, 3659662790)\n",
      "train.csv:13530 (userId, eventId)=(3834655845, 1929873511)\n",
      "train.csv:13540 (userId, eventId)=(3834655845, 3951671760)\n",
      "train.csv:13550 (userId, eventId)=(3835637004, 2658489159)\n",
      "train.csv:13560 (userId, eventId)=(3835637004, 1563203779)\n",
      "train.csv:13570 (userId, eventId)=(3835637004, 3025468453)\n",
      "train.csv:13580 (userId, eventId)=(3835637004, 857528595)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:13590 (userId, eventId)=(3835637004, 1778753558)\n",
      "train.csv:13600 (userId, eventId)=(3838242688, 1816813281)\n",
      "train.csv:13610 (userId, eventId)=(3839562998, 3302719635)\n",
      "train.csv:13620 (userId, eventId)=(3839562998, 3692401116)\n",
      "train.csv:13630 (userId, eventId)=(3841524478, 771676713)\n",
      "train.csv:13640 (userId, eventId)=(3841682652, 317715279)\n",
      "train.csv:13650 (userId, eventId)=(3842862938, 524127618)\n",
      "train.csv:13660 (userId, eventId)=(3843287866, 1532377761)\n",
      "train.csv:13670 (userId, eventId)=(3848620961, 3849306291)\n",
      "train.csv:13680 (userId, eventId)=(3850128249, 4114296702)\n",
      "train.csv:13690 (userId, eventId)=(3851487388, 627338344)\n",
      "train.csv:13700 (userId, eventId)=(3861589862, 3327757331)\n",
      "train.csv:13710 (userId, eventId)=(3865016311, 2456139530)\n",
      "train.csv:13720 (userId, eventId)=(3866177358, 955398943)\n",
      "train.csv:13730 (userId, eventId)=(3867241412, 1255629030)\n",
      "train.csv:13740 (userId, eventId)=(3870800241, 3069899537)\n",
      "train.csv:13750 (userId, eventId)=(3877652693, 2082389230)\n",
      "train.csv:13760 (userId, eventId)=(3883721026, 1217440720)\n",
      "train.csv:13770 (userId, eventId)=(3885352810, 1895999151)\n",
      "train.csv:13780 (userId, eventId)=(3889944197, 3732079142)\n",
      "train.csv:13790 (userId, eventId)=(3891396601, 3254991059)\n",
      "train.csv:13800 (userId, eventId)=(3893362486, 1390707377)\n",
      "train.csv:13810 (userId, eventId)=(3894667987, 929107951)\n",
      "train.csv:13820 (userId, eventId)=(3898478698, 1600413013)\n",
      "train.csv:13830 (userId, eventId)=(3898478698, 2643833505)\n",
      "train.csv:13840 (userId, eventId)=(3903823612, 1242636641)\n",
      "train.csv:13850 (userId, eventId)=(3904408941, 724969489)\n",
      "train.csv:13860 (userId, eventId)=(3909997753, 4203627753)\n",
      "train.csv:13870 (userId, eventId)=(3910177999, 2529072432)\n",
      "train.csv:13880 (userId, eventId)=(3922819697, 1996883919)\n",
      "train.csv:13890 (userId, eventId)=(3926920467, 593742989)\n",
      "train.csv:13900 (userId, eventId)=(3929074393, 127240207)\n",
      "train.csv:13910 (userId, eventId)=(3930161610, 3942891975)\n",
      "train.csv:13920 (userId, eventId)=(3934266336, 1600413013)\n",
      "train.csv:13930 (userId, eventId)=(3935809106, 2374444123)\n",
      "train.csv:13940 (userId, eventId)=(3941958556, 602394192)\n",
      "train.csv:13950 (userId, eventId)=(3943175229, 1775180166)\n",
      "train.csv:13960 (userId, eventId)=(3943175229, 906531778)\n",
      "train.csv:13970 (userId, eventId)=(3943175229, 2713137893)\n",
      "train.csv:13980 (userId, eventId)=(3943175229, 996491337)\n",
      "train.csv:13990 (userId, eventId)=(3943175229, 1699116640)\n",
      "train.csv:14000 (userId, eventId)=(3944021305, 2096772901)\n",
      "train.csv:14010 (userId, eventId)=(3944910705, 3403115736)\n",
      "train.csv:14020 (userId, eventId)=(3945099542, 3442171925)\n",
      "train.csv:14030 (userId, eventId)=(3947821070, 2007279414)\n",
      "train.csv:14040 (userId, eventId)=(3953979752, 1352928000)\n",
      "train.csv:14050 (userId, eventId)=(3956887319, 4203571618)\n",
      "train.csv:14060 (userId, eventId)=(3961511121, 3998504188)\n",
      "train.csv:14070 (userId, eventId)=(3963277827, 397513400)\n",
      "train.csv:14080 (userId, eventId)=(3964170614, 2274599788)\n",
      "train.csv:14090 (userId, eventId)=(3968152684, 3479440123)\n",
      "train.csv:14100 (userId, eventId)=(3970825989, 2767221600)\n",
      "train.csv:14110 (userId, eventId)=(3972581484, 955398943)\n",
      "train.csv:14120 (userId, eventId)=(3979775182, 719337372)\n",
      "train.csv:14130 (userId, eventId)=(3981819420, 1401905636)\n",
      "train.csv:14140 (userId, eventId)=(3986193980, 719337372)\n",
      "train.csv:14150 (userId, eventId)=(3987610774, 3509100603)\n",
      "train.csv:14160 (userId, eventId)=(3987610774, 1597380017)\n",
      "train.csv:14170 (userId, eventId)=(3990579831, 1605110491)\n",
      "train.csv:14180 (userId, eventId)=(3995442796, 3115754876)\n",
      "train.csv:14190 (userId, eventId)=(3998399905, 202137419)\n",
      "train.csv:14200 (userId, eventId)=(4000106370, 4170108374)\n",
      "train.csv:14210 (userId, eventId)=(4001997352, 3385885030)\n",
      "train.csv:14220 (userId, eventId)=(4005594979, 2934155652)\n",
      "train.csv:14230 (userId, eventId)=(4005604348, 1607857123)\n",
      "train.csv:14240 (userId, eventId)=(4005906279, 2589709809)\n",
      "train.csv:14250 (userId, eventId)=(4007830365, 3956263256)\n",
      "train.csv:14260 (userId, eventId)=(4007974189, 946418622)\n",
      "train.csv:14270 (userId, eventId)=(4020164258, 1446608996)\n",
      "train.csv:14280 (userId, eventId)=(4024053152, 2007279414)\n",
      "train.csv:14290 (userId, eventId)=(4026562594, 1068825763)\n",
      "train.csv:14300 (userId, eventId)=(4030714899, 2915789051)\n",
      "train.csv:14310 (userId, eventId)=(4030798150, 881346279)\n",
      "train.csv:14320 (userId, eventId)=(4032639394, 2619521100)\n",
      "train.csv:14330 (userId, eventId)=(4040322582, 602394192)\n",
      "train.csv:14340 (userId, eventId)=(4042546595, 996485731)\n",
      "train.csv:14350 (userId, eventId)=(4042546595, 3199154012)\n",
      "train.csv:14360 (userId, eventId)=(4044282675, 3119648674)\n",
      "train.csv:14370 (userId, eventId)=(4047903240, 1433428460)\n",
      "train.csv:14380 (userId, eventId)=(4048868881, 952519340)\n",
      "train.csv:14390 (userId, eventId)=(4054029300, 2053952798)\n",
      "train.csv:14400 (userId, eventId)=(4055395044, 1390707377)\n",
      "train.csv:14410 (userId, eventId)=(4057602883, 3823518713)\n",
      "train.csv:14420 (userId, eventId)=(4057602883, 397526429)\n",
      "train.csv:14430 (userId, eventId)=(4062975904, 3258819416)\n",
      "train.csv:14440 (userId, eventId)=(4066782471, 4249304663)\n",
      "train.csv:14450 (userId, eventId)=(4070008434, 2977166421)\n",
      "train.csv:14460 (userId, eventId)=(4075466480, 157268636)\n",
      "train.csv:14470 (userId, eventId)=(4075466480, 1744265468)\n",
      "train.csv:14480 (userId, eventId)=(4075466480, 3796480562)\n",
      "train.csv:14490 (userId, eventId)=(4075466480, 3538627205)\n",
      "train.csv:14500 (userId, eventId)=(4075466480, 3567240505)\n",
      "train.csv:14510 (userId, eventId)=(4075574010, 3839784127)\n",
      "train.csv:14520 (userId, eventId)=(4081761804, 2274328264)\n",
      "train.csv:14530 (userId, eventId)=(4081921627, 3335267094)\n",
      "train.csv:14540 (userId, eventId)=(4087630383, 2899756668)\n",
      "train.csv:14550 (userId, eventId)=(4098096768, 3150441220)\n",
      "train.csv:14560 (userId, eventId)=(4101519751, 427097190)\n",
      "train.csv:14570 (userId, eventId)=(4101519751, 615488222)\n",
      "train.csv:14580 (userId, eventId)=(4103923906, 737023160)\n",
      "train.csv:14590 (userId, eventId)=(4106525792, 3592100929)\n",
      "train.csv:14600 (userId, eventId)=(4107349498, 3842730088)\n",
      "train.csv:14610 (userId, eventId)=(4108811510, 1269035551)\n",
      "train.csv:14620 (userId, eventId)=(4111854243, 3596510482)\n",
      "train.csv:14630 (userId, eventId)=(4115365036, 907302600)\n",
      "train.csv:14640 (userId, eventId)=(4118821425, 559618821)\n",
      "train.csv:14650 (userId, eventId)=(4120847672, 2427264930)\n",
      "train.csv:14660 (userId, eventId)=(4122483286, 2892429018)\n",
      "train.csv:14670 (userId, eventId)=(4122483286, 3729527390)\n",
      "train.csv:14680 (userId, eventId)=(4123476974, 1203717384)\n",
      "train.csv:14690 (userId, eventId)=(4125376571, 1935724864)\n",
      "train.csv:14700 (userId, eventId)=(4133514703, 1558625743)\n",
      "train.csv:14710 (userId, eventId)=(4135589149, 3536426515)\n",
      "train.csv:14720 (userId, eventId)=(4135593225, 1347202114)\n",
      "train.csv:14730 (userId, eventId)=(4136285322, 3984042837)\n",
      "train.csv:14740 (userId, eventId)=(4138013784, 1205670273)\n",
      "train.csv:14750 (userId, eventId)=(4138499822, 263876510)\n",
      "train.csv:14760 (userId, eventId)=(4141359923, 2803195749)\n",
      "train.csv:14770 (userId, eventId)=(4141924620, 641950279)\n",
      "train.csv:14780 (userId, eventId)=(4146086354, 280784670)\n",
      "train.csv:14790 (userId, eventId)=(4146675310, 1269035551)\n",
      "train.csv:14800 (userId, eventId)=(4152805025, 3515520150)\n",
      "train.csv:14810 (userId, eventId)=(4156731925, 711611185)\n",
      "train.csv:14820 (userId, eventId)=(4157365314, 4267083677)\n",
      "train.csv:14830 (userId, eventId)=(4157365314, 3183605169)\n",
      "train.csv:14840 (userId, eventId)=(4162769577, 2396566946)\n",
      "train.csv:14850 (userId, eventId)=(4164388326, 116707400)\n",
      "train.csv:14860 (userId, eventId)=(4168402703, 309860528)\n",
      "train.csv:14870 (userId, eventId)=(4170453600, 1690154685)\n",
      "train.csv:14880 (userId, eventId)=(4171765566, 4106186736)\n",
      "train.csv:14890 (userId, eventId)=(4175659797, 2237302185)\n",
      "train.csv:14900 (userId, eventId)=(4176403253, 1180987071)\n",
      "train.csv:14910 (userId, eventId)=(4179324570, 1111438174)\n",
      "train.csv:14920 (userId, eventId)=(4181452333, 1083268255)\n",
      "train.csv:14930 (userId, eventId)=(4181543522, 2007279414)\n",
      "train.csv:14940 (userId, eventId)=(4185115186, 2149464820)\n",
      "train.csv:14950 (userId, eventId)=(4186528243, 1076364848)\n",
      "train.csv:14960 (userId, eventId)=(4190165036, 719337372)\n",
      "train.csv:14970 (userId, eventId)=(4190879012, 3051234166)\n",
      "train.csv:14980 (userId, eventId)=(4192733318, 2968986224)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "train.csv:14990 (userId, eventId)=(4195660981, 2963144429)\n",
      "train.csv:15000 (userId, eventId)=(4197193550, 1628057176)\n",
      "train.csv:15010 (userId, eventId)=(4199616576, 400356575)\n",
      "train.csv:15020 (userId, eventId)=(4199616576, 1826343214)\n",
      "train.csv:15030 (userId, eventId)=(4200601044, 2784556347)\n",
      "train.csv:15040 (userId, eventId)=(4202081674, 539032065)\n",
      "train.csv:15050 (userId, eventId)=(4202112938, 753115138)\n",
      "train.csv:15060 (userId, eventId)=(4205646791, 3928440935)\n",
      "train.csv:15070 (userId, eventId)=(4206471336, 2149464820)\n",
      "train.csv:15080 (userId, eventId)=(4206915288, 4157683270)\n",
      "train.csv:15090 (userId, eventId)=(4213772349, 2558272675)\n",
      "train.csv:15100 (userId, eventId)=(4217222631, 4130722320)\n",
      "train.csv:15110 (userId, eventId)=(4217222631, 1673895160)\n",
      "train.csv:15120 (userId, eventId)=(4217222631, 2860418664)\n",
      "train.csv:15130 (userId, eventId)=(4220962429, 1124649470)\n",
      "train.csv:15140 (userId, eventId)=(4222590338, 300004583)\n",
      "train.csv:15150 (userId, eventId)=(4226575687, 914532885)\n",
      "train.csv:15160 (userId, eventId)=(4232243965, 1330949688)\n",
      "train.csv:15170 (userId, eventId)=(4233914020, 345541072)\n",
      "train.csv:15180 (userId, eventId)=(4236087068, 2980258101)\n",
      "train.csv:15190 (userId, eventId)=(4239378941, 3338163812)\n",
      "train.csv:15200 (userId, eventId)=(4239616087, 2037550810)\n",
      "train.csv:15210 (userId, eventId)=(4244109605, 1738149624)\n",
      "train.csv:15220 (userId, eventId)=(4244109605, 1024681142)\n",
      "train.csv:15230 (userId, eventId)=(4244109605, 3004061810)\n",
      "train.csv:15240 (userId, eventId)=(4246010516, 3952438126)\n",
      "train.csv:15250 (userId, eventId)=(4246728549, 1638992821)\n",
      "train.csv:15260 (userId, eventId)=(4247553940, 1213812933)\n",
      "train.csv:15270 (userId, eventId)=(4247824186, 1993111201)\n",
      "train.csv:15280 (userId, eventId)=(4257951883, 1180607121)\n",
      "train.csv:15290 (userId, eventId)=(4261865653, 1771812765)\n",
      "train.csv:15300 (userId, eventId)=(4262496040, 645163767)\n",
      "train.csv:15310 (userId, eventId)=(4264591455, 1203717384)\n",
      "train.csv:15320 (userId, eventId)=(4269216118, 1630489177)\n",
      "train.csv:15330 (userId, eventId)=(4272342830, 673098017)\n",
      "train.csv:15340 (userId, eventId)=(4276320842, 3418830493)\n",
      "train.csv:15350 (userId, eventId)=(4278168842, 2101402606)\n",
      "train.csv:15360 (userId, eventId)=(4282954307, 2168072348)\n",
      "train.csv:15370 (userId, eventId)=(4285564534, 1364943007)\n",
      "train.csv:15380 (userId, eventId)=(4286635694, 1868620616)\n",
      "train.csv:15390 (userId, eventId)=(4291083982, 2988656322)\n",
      "生成预测数据...\n",
      "\n",
      "test.csv:10 (userId, eventId)=(5161061, 1652007005)\n",
      "test.csv:20 (userId, eventId)=(7336598, 2428145712)\n",
      "test.csv:30 (userId, eventId)=(7514340, 901144614)\n",
      "test.csv:40 (userId, eventId)=(16454810, 761140108)\n",
      "test.csv:50 (userId, eventId)=(18236457, 2353399295)\n",
      "test.csv:60 (userId, eventId)=(23465780, 955398943)\n",
      "test.csv:70 (userId, eventId)=(30355949, 955398943)\n",
      "test.csv:80 (userId, eventId)=(35565661, 3655418763)\n",
      "test.csv:90 (userId, eventId)=(38395056, 200617654)\n",
      "test.csv:100 (userId, eventId)=(43826519, 4205267137)\n",
      "test.csv:110 (userId, eventId)=(43965236, 2806565970)\n",
      "test.csv:120 (userId, eventId)=(50521271, 1570912780)\n",
      "test.csv:130 (userId, eventId)=(57783108, 1600413013)\n",
      "test.csv:140 (userId, eventId)=(67355582, 3022995002)\n",
      "test.csv:150 (userId, eventId)=(71092144, 289899674)\n",
      "test.csv:160 (userId, eventId)=(74368740, 1801175686)\n",
      "test.csv:170 (userId, eventId)=(74504185, 907302600)\n",
      "test.csv:180 (userId, eventId)=(75436593, 3033694655)\n",
      "test.csv:190 (userId, eventId)=(76313799, 1469291456)\n",
      "test.csv:200 (userId, eventId)=(80365330, 514153585)\n",
      "test.csv:210 (userId, eventId)=(87299174, 1271330281)\n",
      "test.csv:220 (userId, eventId)=(93148987, 1600413013)\n",
      "test.csv:230 (userId, eventId)=(94142526, 1356197621)\n",
      "test.csv:240 (userId, eventId)=(97062150, 3950589515)\n",
      "test.csv:250 (userId, eventId)=(99141124, 2953583082)\n",
      "test.csv:260 (userId, eventId)=(105347632, 2679521343)\n",
      "test.csv:270 (userId, eventId)=(105347632, 366857842)\n",
      "test.csv:280 (userId, eventId)=(109457319, 1532377761)\n",
      "test.csv:290 (userId, eventId)=(110342379, 633659090)\n",
      "test.csv:300 (userId, eventId)=(110342379, 642644408)\n",
      "test.csv:310 (userId, eventId)=(118243744, 3271725028)\n",
      "test.csv:320 (userId, eventId)=(122743553, 3281130769)\n",
      "test.csv:330 (userId, eventId)=(130441156, 2856764723)\n",
      "test.csv:340 (userId, eventId)=(131621903, 496131340)\n",
      "test.csv:350 (userId, eventId)=(138126692, 1587116147)\n",
      "test.csv:360 (userId, eventId)=(139480407, 1532377761)\n",
      "test.csv:370 (userId, eventId)=(146035325, 3113660150)\n",
      "test.csv:380 (userId, eventId)=(147627126, 3504788955)\n",
      "test.csv:390 (userId, eventId)=(151534919, 1361307272)\n",
      "test.csv:400 (userId, eventId)=(160230482, 3776957253)\n",
      "test.csv:410 (userId, eventId)=(160673392, 1448086840)\n",
      "test.csv:420 (userId, eventId)=(167608261, 3680209340)\n",
      "test.csv:430 (userId, eventId)=(168520465, 263253434)\n",
      "test.csv:440 (userId, eventId)=(178408585, 2803195749)\n",
      "test.csv:450 (userId, eventId)=(180191037, 2139851240)\n",
      "test.csv:460 (userId, eventId)=(180191037, 3375367183)\n",
      "test.csv:470 (userId, eventId)=(180191037, 273902811)\n",
      "test.csv:480 (userId, eventId)=(180191037, 1049315016)\n",
      "test.csv:490 (userId, eventId)=(180191037, 3153590943)\n",
      "test.csv:500 (userId, eventId)=(182290053, 2529072432)\n",
      "test.csv:510 (userId, eventId)=(183980147, 628034280)\n",
      "test.csv:520 (userId, eventId)=(192951763, 1154762179)\n",
      "test.csv:530 (userId, eventId)=(195055182, 2438057172)\n",
      "test.csv:540 (userId, eventId)=(207382248, 3315807711)\n",
      "test.csv:550 (userId, eventId)=(207614139, 361866379)\n",
      "test.csv:560 (userId, eventId)=(207614139, 3900897464)\n",
      "test.csv:570 (userId, eventId)=(207614139, 870899349)\n",
      "test.csv:580 (userId, eventId)=(207614139, 4170509642)\n",
      "test.csv:590 (userId, eventId)=(207614139, 2896451394)\n",
      "test.csv:600 (userId, eventId)=(207614139, 655514048)\n",
      "test.csv:610 (userId, eventId)=(212922688, 3779243813)\n",
      "test.csv:620 (userId, eventId)=(214127647, 2374000439)\n",
      "test.csv:630 (userId, eventId)=(216180088, 642644408)\n",
      "test.csv:640 (userId, eventId)=(218125888, 2374825098)\n",
      "test.csv:650 (userId, eventId)=(221717938, 173873072)\n",
      "test.csv:660 (userId, eventId)=(222319155, 2445964998)\n",
      "test.csv:670 (userId, eventId)=(223726744, 324581869)\n",
      "test.csv:680 (userId, eventId)=(227629516, 2139975650)\n",
      "test.csv:690 (userId, eventId)=(233871977, 3846588922)\n",
      "test.csv:700 (userId, eventId)=(240047100, 153563227)\n",
      "test.csv:710 (userId, eventId)=(242737714, 1486375750)\n",
      "test.csv:720 (userId, eventId)=(254874841, 3984402070)\n",
      "test.csv:730 (userId, eventId)=(256035140, 771676713)\n",
      "test.csv:740 (userId, eventId)=(265212492, 2529072432)\n",
      "test.csv:750 (userId, eventId)=(269394305, 4201499448)\n",
      "test.csv:760 (userId, eventId)=(282335733, 3282413042)\n",
      "test.csv:770 (userId, eventId)=(283032695, 2007279414)\n",
      "test.csv:780 (userId, eventId)=(285396757, 1444394097)\n",
      "test.csv:790 (userId, eventId)=(293887296, 3480624055)\n",
      "test.csv:800 (userId, eventId)=(308413891, 3984042837)\n",
      "test.csv:810 (userId, eventId)=(316066613, 1532377761)\n",
      "test.csv:820 (userId, eventId)=(320767777, 2526340332)\n",
      "test.csv:830 (userId, eventId)=(322208106, 893326926)\n",
      "test.csv:840 (userId, eventId)=(332906681, 1953910932)\n",
      "test.csv:850 (userId, eventId)=(352560129, 3213069097)\n",
      "test.csv:860 (userId, eventId)=(356982085, 2007279414)\n",
      "test.csv:870 (userId, eventId)=(367845178, 1902753965)\n",
      "test.csv:880 (userId, eventId)=(378788595, 268233790)\n",
      "test.csv:890 (userId, eventId)=(393556601, 4268612133)\n",
      "test.csv:900 (userId, eventId)=(394596900, 3735036412)\n",
      "test.csv:910 (userId, eventId)=(395260483, 2168553474)\n",
      "test.csv:920 (userId, eventId)=(396008921, 719337372)\n",
      "test.csv:930 (userId, eventId)=(400738124, 2754334442)\n",
      "test.csv:940 (userId, eventId)=(402625828, 867618575)\n",
      "test.csv:950 (userId, eventId)=(404226314, 496131340)\n",
      "test.csv:960 (userId, eventId)=(423190387, 955398943)\n",
      "test.csv:970 (userId, eventId)=(428619631, 1028836917)\n",
      "test.csv:980 (userId, eventId)=(430443066, 1471140446)\n",
      "test.csv:990 (userId, eventId)=(432362044, 2391976137)\n",
      "test.csv:1000 (userId, eventId)=(433510318, 4244463632)\n",
      "test.csv:1010 (userId, eventId)=(441120644, 2689439975)\n",
      "test.csv:1020 (userId, eventId)=(454881517, 3830416827)\n",
      "test.csv:1030 (userId, eventId)=(455279111, 1988626107)\n",
      "test.csv:1040 (userId, eventId)=(457456094, 753115138)\n",
      "test.csv:1050 (userId, eventId)=(460024134, 899668139)\n",
      "test.csv:1060 (userId, eventId)=(462450211, 2320194649)\n",
      "test.csv:1070 (userId, eventId)=(469116393, 568700686)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:1080 (userId, eventId)=(473558899, 1076364848)\n",
      "test.csv:1090 (userId, eventId)=(483141559, 2143656308)\n",
      "test.csv:1100 (userId, eventId)=(485626279, 1922937308)\n",
      "test.csv:1110 (userId, eventId)=(489332113, 600370874)\n",
      "test.csv:1120 (userId, eventId)=(489332113, 1533039925)\n",
      "test.csv:1130 (userId, eventId)=(491496715, 3680209340)\n",
      "test.csv:1140 (userId, eventId)=(498762190, 1394911305)\n",
      "test.csv:1150 (userId, eventId)=(502787831, 2428145712)\n",
      "test.csv:1160 (userId, eventId)=(507590029, 87962584)\n",
      "test.csv:1170 (userId, eventId)=(507841367, 4002702641)\n",
      "test.csv:1180 (userId, eventId)=(511678471, 2601678976)\n",
      "test.csv:1190 (userId, eventId)=(511678471, 1138354613)\n",
      "test.csv:1200 (userId, eventId)=(515293671, 738484716)\n",
      "test.csv:1210 (userId, eventId)=(516201949, 2806565970)\n",
      "test.csv:1220 (userId, eventId)=(521893181, 4219488434)\n",
      "test.csv:1230 (userId, eventId)=(524529500, 2767814706)\n",
      "test.csv:1240 (userId, eventId)=(536673024, 1488068589)\n",
      "test.csv:1250 (userId, eventId)=(541187878, 3335153331)\n",
      "test.csv:1260 (userId, eventId)=(541187878, 3454922346)\n",
      "test.csv:1270 (userId, eventId)=(546007936, 2774259276)\n",
      "test.csv:1280 (userId, eventId)=(547127090, 905634841)\n",
      "test.csv:1290 (userId, eventId)=(547476091, 1234490218)\n",
      "test.csv:1300 (userId, eventId)=(554693050, 3144013743)\n",
      "test.csv:1310 (userId, eventId)=(555727671, 1569838328)\n",
      "test.csv:1320 (userId, eventId)=(559905447, 3256009463)\n",
      "test.csv:1330 (userId, eventId)=(562762742, 3174177804)\n",
      "test.csv:1340 (userId, eventId)=(567536219, 1476247853)\n",
      "test.csv:1350 (userId, eventId)=(569486651, 1448086840)\n",
      "test.csv:1360 (userId, eventId)=(576889228, 1269035551)\n",
      "test.csv:1370 (userId, eventId)=(583119832, 952519340)\n",
      "test.csv:1380 (userId, eventId)=(587750031, 3435033871)\n",
      "test.csv:1390 (userId, eventId)=(589386328, 2529072432)\n",
      "test.csv:1400 (userId, eventId)=(592689052, 1862794029)\n",
      "test.csv:1410 (userId, eventId)=(592689052, 2529072432)\n",
      "test.csv:1420 (userId, eventId)=(599785185, 4140154751)\n",
      "test.csv:1430 (userId, eventId)=(602148753, 952519340)\n",
      "test.csv:1440 (userId, eventId)=(603202352, 882150572)\n",
      "test.csv:1450 (userId, eventId)=(607394331, 119750609)\n",
      "test.csv:1460 (userId, eventId)=(611059554, 2899306830)\n",
      "test.csv:1470 (userId, eventId)=(611791560, 1556475107)\n",
      "test.csv:1480 (userId, eventId)=(618158373, 414842182)\n",
      "test.csv:1490 (userId, eventId)=(620761021, 1816813281)\n",
      "test.csv:1500 (userId, eventId)=(632808865, 2845303452)\n",
      "test.csv:1510 (userId, eventId)=(632808865, 1436244041)\n",
      "test.csv:1520 (userId, eventId)=(635387882, 1090232199)\n",
      "test.csv:1530 (userId, eventId)=(637288269, 211705000)\n",
      "test.csv:1540 (userId, eventId)=(638210143, 2424645360)\n",
      "test.csv:1550 (userId, eventId)=(640531312, 2498491194)\n",
      "test.csv:1560 (userId, eventId)=(640550522, 650834187)\n",
      "test.csv:1570 (userId, eventId)=(645859586, 562418181)\n",
      "test.csv:1580 (userId, eventId)=(648323757, 2325542576)\n",
      "test.csv:1590 (userId, eventId)=(651367901, 2835968684)\n",
      "test.csv:1600 (userId, eventId)=(656664529, 2529072432)\n",
      "test.csv:1610 (userId, eventId)=(661907327, 1269035551)\n",
      "test.csv:1620 (userId, eventId)=(662608699, 2919165814)\n",
      "test.csv:1630 (userId, eventId)=(662608699, 2688159351)\n",
      "test.csv:1640 (userId, eventId)=(665747414, 3761092488)\n",
      "test.csv:1650 (userId, eventId)=(666374166, 2407779614)\n",
      "test.csv:1660 (userId, eventId)=(668356259, 3572440355)\n",
      "test.csv:1670 (userId, eventId)=(675129768, 2073622327)\n",
      "test.csv:1680 (userId, eventId)=(677676622, 4140154751)\n",
      "test.csv:1690 (userId, eventId)=(682630586, 2289794388)\n",
      "test.csv:1700 (userId, eventId)=(684722612, 140337530)\n",
      "test.csv:1710 (userId, eventId)=(685448397, 2149464820)\n",
      "test.csv:1720 (userId, eventId)=(685933857, 3268675447)\n",
      "test.csv:1730 (userId, eventId)=(691313196, 3864843980)\n",
      "test.csv:1740 (userId, eventId)=(691612308, 727153687)\n",
      "test.csv:1750 (userId, eventId)=(693535188, 2007279414)\n",
      "test.csv:1760 (userId, eventId)=(696967670, 3768450121)\n",
      "test.csv:1770 (userId, eventId)=(699420462, 1600413013)\n",
      "test.csv:1780 (userId, eventId)=(703001700, 2976972203)\n",
      "test.csv:1790 (userId, eventId)=(707928734, 4136385770)\n",
      "test.csv:1800 (userId, eventId)=(712234221, 3720373392)\n",
      "test.csv:1810 (userId, eventId)=(713889887, 741936389)\n",
      "test.csv:1820 (userId, eventId)=(717731951, 1397608202)\n",
      "test.csv:1830 (userId, eventId)=(721089780, 3735036412)\n",
      "test.csv:1840 (userId, eventId)=(730373215, 1269035551)\n",
      "test.csv:1850 (userId, eventId)=(743705823, 1773166853)\n",
      "test.csv:1860 (userId, eventId)=(745331470, 1490707668)\n",
      "test.csv:1870 (userId, eventId)=(749863583, 3609940860)\n",
      "test.csv:1880 (userId, eventId)=(763615925, 818179591)\n",
      "test.csv:1890 (userId, eventId)=(770336801, 1269035551)\n",
      "test.csv:1900 (userId, eventId)=(771577243, 767327872)\n",
      "test.csv:1910 (userId, eventId)=(771577243, 798676219)\n",
      "test.csv:1920 (userId, eventId)=(776025327, 2218325768)\n",
      "test.csv:1930 (userId, eventId)=(778295633, 1269035551)\n",
      "test.csv:1940 (userId, eventId)=(780238213, 2338670339)\n",
      "test.csv:1950 (userId, eventId)=(781002123, 1662125407)\n",
      "test.csv:1960 (userId, eventId)=(786844289, 1113038458)\n",
      "test.csv:1970 (userId, eventId)=(795601011, 1909674835)\n",
      "test.csv:1980 (userId, eventId)=(802688704, 804619862)\n",
      "test.csv:1990 (userId, eventId)=(806278943, 191855551)\n",
      "test.csv:2000 (userId, eventId)=(813611885, 2036538169)\n",
      "test.csv:2010 (userId, eventId)=(813611885, 1869445239)\n",
      "test.csv:2020 (userId, eventId)=(822628520, 609703506)\n",
      "test.csv:2030 (userId, eventId)=(831595223, 1379670967)\n",
      "test.csv:2040 (userId, eventId)=(840945029, 1390707377)\n",
      "test.csv:2050 (userId, eventId)=(844324358, 3831661369)\n",
      "test.csv:2060 (userId, eventId)=(847928412, 3771339943)\n",
      "test.csv:2070 (userId, eventId)=(851286067, 2912359758)\n",
      "test.csv:2080 (userId, eventId)=(852034251, 3156343505)\n",
      "test.csv:2090 (userId, eventId)=(852034251, 1097776174)\n",
      "test.csv:2100 (userId, eventId)=(853126462, 2529072432)\n",
      "test.csv:2110 (userId, eventId)=(855146601, 1532377761)\n",
      "test.csv:2120 (userId, eventId)=(867285031, 1638236770)\n",
      "test.csv:2130 (userId, eventId)=(867285031, 4172170403)\n",
      "test.csv:2140 (userId, eventId)=(870307659, 2531947768)\n",
      "test.csv:2150 (userId, eventId)=(870439648, 1110856401)\n",
      "test.csv:2160 (userId, eventId)=(885331957, 2992630849)\n",
      "test.csv:2170 (userId, eventId)=(892435980, 3302719635)\n",
      "test.csv:2180 (userId, eventId)=(898118729, 2284016273)\n",
      "test.csv:2190 (userId, eventId)=(900914043, 2529072432)\n",
      "test.csv:2200 (userId, eventId)=(901207935, 955398943)\n",
      "test.csv:2210 (userId, eventId)=(909725785, 2073609284)\n",
      "test.csv:2220 (userId, eventId)=(912344156, 666750527)\n",
      "test.csv:2230 (userId, eventId)=(913890035, 1902753965)\n",
      "test.csv:2240 (userId, eventId)=(915901561, 137663137)\n",
      "test.csv:2250 (userId, eventId)=(925496510, 2428145712)\n",
      "test.csv:2260 (userId, eventId)=(929368698, 1269035551)\n",
      "test.csv:2270 (userId, eventId)=(929841430, 3807386691)\n",
      "test.csv:2280 (userId, eventId)=(938766697, 2529072432)\n",
      "test.csv:2290 (userId, eventId)=(941192286, 3478765131)\n",
      "test.csv:2300 (userId, eventId)=(942095316, 1092072561)\n",
      "test.csv:2310 (userId, eventId)=(944898886, 1532377761)\n",
      "test.csv:2320 (userId, eventId)=(952689028, 1891264305)\n",
      "test.csv:2330 (userId, eventId)=(964184183, 2895151976)\n",
      "test.csv:2340 (userId, eventId)=(968336394, 489688963)\n",
      "test.csv:2350 (userId, eventId)=(971572498, 1151525474)\n",
      "test.csv:2360 (userId, eventId)=(975885955, 2073609284)\n",
      "test.csv:2370 (userId, eventId)=(977456993, 3268726556)\n",
      "test.csv:2380 (userId, eventId)=(980154606, 2108188468)\n",
      "test.csv:2390 (userId, eventId)=(983219028, 585101277)\n",
      "test.csv:2400 (userId, eventId)=(985718337, 2007279414)\n",
      "test.csv:2410 (userId, eventId)=(990507785, 1838843061)\n",
      "test.csv:2420 (userId, eventId)=(995064362, 4125754193)\n",
      "test.csv:2430 (userId, eventId)=(998215810, 3681790556)\n",
      "test.csv:2440 (userId, eventId)=(999268198, 2415873572)\n",
      "test.csv:2450 (userId, eventId)=(1000066358, 383607907)\n",
      "test.csv:2460 (userId, eventId)=(1000773879, 775500559)\n",
      "test.csv:2470 (userId, eventId)=(1000957666, 1845982132)\n",
      "test.csv:2480 (userId, eventId)=(1008276324, 1580455386)\n",
      "test.csv:2490 (userId, eventId)=(1008861493, 3488779034)\n",
      "test.csv:2500 (userId, eventId)=(1010701404, 303459881)\n",
      "test.csv:2510 (userId, eventId)=(1013893828, 1170338316)\n",
      "test.csv:2520 (userId, eventId)=(1019226310, 786670004)\n",
      "test.csv:2530 (userId, eventId)=(1022813953, 2286155514)\n",
      "test.csv:2540 (userId, eventId)=(1030564391, 1369439354)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:2550 (userId, eventId)=(1034862978, 810618772)\n",
      "test.csv:2560 (userId, eventId)=(1038960564, 1468446505)\n",
      "test.csv:2570 (userId, eventId)=(1039053975, 2452291959)\n",
      "test.csv:2580 (userId, eventId)=(1040473939, 4186611895)\n",
      "test.csv:2590 (userId, eventId)=(1045779976, 1154290723)\n",
      "test.csv:2600 (userId, eventId)=(1049481453, 1545807185)\n",
      "test.csv:2610 (userId, eventId)=(1049843964, 2693086474)\n",
      "test.csv:2620 (userId, eventId)=(1050303296, 675888033)\n",
      "test.csv:2630 (userId, eventId)=(1060988803, 216378107)\n",
      "test.csv:2640 (userId, eventId)=(1064453408, 2077865887)\n",
      "test.csv:2650 (userId, eventId)=(1066251866, 2188481598)\n",
      "test.csv:2660 (userId, eventId)=(1066251866, 4021240345)\n",
      "test.csv:2670 (userId, eventId)=(1066372954, 1773230862)\n",
      "test.csv:2680 (userId, eventId)=(1069845555, 64255702)\n",
      "test.csv:2690 (userId, eventId)=(1071963586, 2073609284)\n",
      "test.csv:2700 (userId, eventId)=(1073188652, 3232053960)\n",
      "test.csv:2710 (userId, eventId)=(1078537007, 3838044081)\n",
      "test.csv:2720 (userId, eventId)=(1082691947, 3569452467)\n",
      "test.csv:2730 (userId, eventId)=(1084997316, 554178639)\n",
      "test.csv:2740 (userId, eventId)=(1087870025, 3183605169)\n",
      "test.csv:2750 (userId, eventId)=(1091610794, 2130616732)\n",
      "test.csv:2760 (userId, eventId)=(1095850255, 2345709954)\n",
      "test.csv:2770 (userId, eventId)=(1101972092, 2805037878)\n",
      "test.csv:2780 (userId, eventId)=(1112792616, 1500022724)\n",
      "test.csv:2790 (userId, eventId)=(1112899728, 572892424)\n",
      "test.csv:2800 (userId, eventId)=(1114548338, 2554291574)\n",
      "test.csv:2810 (userId, eventId)=(1119929505, 1525541504)\n",
      "test.csv:2820 (userId, eventId)=(1138996450, 3794166180)\n",
      "test.csv:2830 (userId, eventId)=(1144686688, 2401458775)\n",
      "test.csv:2840 (userId, eventId)=(1148091006, 3616651322)\n",
      "test.csv:2850 (userId, eventId)=(1151239535, 578037803)\n",
      "test.csv:2860 (userId, eventId)=(1151239535, 3306000381)\n",
      "test.csv:2870 (userId, eventId)=(1154164776, 2219144892)\n",
      "test.csv:2880 (userId, eventId)=(1161695480, 4090461312)\n",
      "test.csv:2890 (userId, eventId)=(1162995930, 3643004825)\n",
      "test.csv:2900 (userId, eventId)=(1174924783, 1332759137)\n",
      "test.csv:2910 (userId, eventId)=(1181399405, 581559015)\n",
      "test.csv:2920 (userId, eventId)=(1185909505, 937969852)\n",
      "test.csv:2930 (userId, eventId)=(1186383301, 2269110763)\n",
      "test.csv:2940 (userId, eventId)=(1193753309, 3888550683)\n",
      "test.csv:2950 (userId, eventId)=(1194867611, 2375103731)\n",
      "test.csv:2960 (userId, eventId)=(1196973493, 3864843980)\n",
      "test.csv:2970 (userId, eventId)=(1201984883, 3527147387)\n",
      "test.csv:2980 (userId, eventId)=(1206686094, 1159050153)\n",
      "test.csv:2990 (userId, eventId)=(1208562840, 3008017580)\n",
      "test.csv:3000 (userId, eventId)=(1210932037, 2529072432)\n",
      "test.csv:3010 (userId, eventId)=(1214698655, 353933726)\n",
      "test.csv:3020 (userId, eventId)=(1219372694, 1654106477)\n",
      "test.csv:3030 (userId, eventId)=(1220188351, 827394707)\n",
      "test.csv:3040 (userId, eventId)=(1221659619, 4091868183)\n",
      "test.csv:3050 (userId, eventId)=(1227878272, 2765362727)\n",
      "test.csv:3060 (userId, eventId)=(1236967132, 2010667544)\n",
      "test.csv:3070 (userId, eventId)=(1237612088, 1600413013)\n",
      "test.csv:3080 (userId, eventId)=(1251857185, 1364587311)\n",
      "test.csv:3090 (userId, eventId)=(1256698929, 2145223158)\n",
      "test.csv:3100 (userId, eventId)=(1260240845, 3677554347)\n",
      "test.csv:3110 (userId, eventId)=(1266271629, 4242816413)\n",
      "test.csv:3120 (userId, eventId)=(1269929715, 2698678033)\n",
      "test.csv:3130 (userId, eventId)=(1278116367, 1222992905)\n",
      "test.csv:3140 (userId, eventId)=(1279721997, 1776797476)\n",
      "test.csv:3150 (userId, eventId)=(1294883948, 3621868055)\n",
      "test.csv:3160 (userId, eventId)=(1299218981, 3849306291)\n",
      "test.csv:3170 (userId, eventId)=(1313619105, 1606038564)\n",
      "test.csv:3180 (userId, eventId)=(1317057097, 955398943)\n",
      "test.csv:3190 (userId, eventId)=(1319081165, 2232471778)\n",
      "test.csv:3200 (userId, eventId)=(1322959747, 799782433)\n",
      "test.csv:3210 (userId, eventId)=(1325976285, 393416610)\n",
      "test.csv:3220 (userId, eventId)=(1326846562, 4037512717)\n",
      "test.csv:3230 (userId, eventId)=(1326846562, 1828726073)\n",
      "test.csv:3240 (userId, eventId)=(1329344819, 4157898359)\n",
      "test.csv:3250 (userId, eventId)=(1336664122, 863669353)\n",
      "test.csv:3260 (userId, eventId)=(1336715369, 3121309854)\n",
      "test.csv:3270 (userId, eventId)=(1338460474, 1333552095)\n",
      "test.csv:3280 (userId, eventId)=(1341260655, 617788282)\n",
      "test.csv:3290 (userId, eventId)=(1344653000, 940033316)\n",
      "test.csv:3300 (userId, eventId)=(1344653000, 2732696131)\n",
      "test.csv:3310 (userId, eventId)=(1344653000, 3816147170)\n",
      "test.csv:3320 (userId, eventId)=(1367498504, 1816813281)\n",
      "test.csv:3330 (userId, eventId)=(1378077886, 3462111166)\n",
      "test.csv:3340 (userId, eventId)=(1383404582, 1390707377)\n",
      "test.csv:3350 (userId, eventId)=(1384880491, 714391510)\n",
      "test.csv:3360 (userId, eventId)=(1392003365, 3251813967)\n",
      "test.csv:3370 (userId, eventId)=(1407394581, 4025024212)\n",
      "test.csv:3380 (userId, eventId)=(1407547363, 411731753)\n",
      "test.csv:3390 (userId, eventId)=(1415268912, 1076364848)\n",
      "test.csv:3400 (userId, eventId)=(1415422982, 91120222)\n",
      "test.csv:3410 (userId, eventId)=(1422762628, 4081672581)\n",
      "test.csv:3420 (userId, eventId)=(1426347523, 3767960965)\n",
      "test.csv:3430 (userId, eventId)=(1427626481, 2339839832)\n",
      "test.csv:3440 (userId, eventId)=(1429212077, 4057581717)\n",
      "test.csv:3450 (userId, eventId)=(1435067643, 2753639447)\n",
      "test.csv:3460 (userId, eventId)=(1445882902, 3247862990)\n",
      "test.csv:3470 (userId, eventId)=(1447459888, 1499603155)\n",
      "test.csv:3480 (userId, eventId)=(1449039754, 1776393554)\n",
      "test.csv:3490 (userId, eventId)=(1449803596, 2149315332)\n",
      "test.csv:3500 (userId, eventId)=(1452921099, 2705317682)\n",
      "test.csv:3510 (userId, eventId)=(1455080965, 450130761)\n",
      "test.csv:3520 (userId, eventId)=(1462567031, 1133385189)\n",
      "test.csv:3530 (userId, eventId)=(1467237100, 1179672480)\n",
      "test.csv:3540 (userId, eventId)=(1467753127, 1332759137)\n",
      "test.csv:3550 (userId, eventId)=(1467753127, 3219059524)\n",
      "test.csv:3560 (userId, eventId)=(1473654738, 3048578499)\n",
      "test.csv:3570 (userId, eventId)=(1476755701, 1390707377)\n",
      "test.csv:3580 (userId, eventId)=(1485684679, 3697359735)\n",
      "test.csv:3590 (userId, eventId)=(1487949494, 1394402721)\n",
      "test.csv:3600 (userId, eventId)=(1489351479, 553021827)\n",
      "test.csv:3610 (userId, eventId)=(1489351479, 186104502)\n",
      "test.csv:3620 (userId, eventId)=(1500569811, 2818637673)\n",
      "test.csv:3630 (userId, eventId)=(1513532936, 1633263987)\n",
      "test.csv:3640 (userId, eventId)=(1515805774, 753115138)\n",
      "test.csv:3650 (userId, eventId)=(1520424871, 3055102570)\n",
      "test.csv:3660 (userId, eventId)=(1520557068, 3760204639)\n",
      "test.csv:3670 (userId, eventId)=(1524886161, 2428145712)\n",
      "test.csv:3680 (userId, eventId)=(1528971092, 1076364848)\n",
      "test.csv:3690 (userId, eventId)=(1539795814, 2217633473)\n",
      "test.csv:3700 (userId, eventId)=(1540705179, 2007279414)\n",
      "test.csv:3710 (userId, eventId)=(1544537243, 1996897474)\n",
      "test.csv:3720 (userId, eventId)=(1546141211, 39270034)\n",
      "test.csv:3730 (userId, eventId)=(1548827068, 2667740825)\n",
      "test.csv:3740 (userId, eventId)=(1549085270, 1390707377)\n",
      "test.csv:3750 (userId, eventId)=(1549204000, 3365253328)\n",
      "test.csv:3760 (userId, eventId)=(1555282107, 2311572043)\n",
      "test.csv:3770 (userId, eventId)=(1561371437, 1902753965)\n",
      "test.csv:3780 (userId, eventId)=(1565310892, 1323913377)\n",
      "test.csv:3790 (userId, eventId)=(1567499133, 496369519)\n",
      "test.csv:3800 (userId, eventId)=(1568529849, 1076364848)\n",
      "test.csv:3810 (userId, eventId)=(1573621317, 79214950)\n",
      "test.csv:3820 (userId, eventId)=(1575020018, 2529072432)\n",
      "test.csv:3830 (userId, eventId)=(1580848851, 711611185)\n",
      "test.csv:3840 (userId, eventId)=(1586608043, 1042965539)\n",
      "test.csv:3850 (userId, eventId)=(1600931671, 2787476717)\n",
      "test.csv:3860 (userId, eventId)=(1600931671, 473538275)\n",
      "test.csv:3870 (userId, eventId)=(1600931671, 3830565859)\n",
      "test.csv:3880 (userId, eventId)=(1602963012, 1710260937)\n",
      "test.csv:3890 (userId, eventId)=(1607600653, 812616126)\n",
      "test.csv:3900 (userId, eventId)=(1607711586, 2465617692)\n",
      "test.csv:3910 (userId, eventId)=(1607711586, 2775969504)\n",
      "test.csv:3920 (userId, eventId)=(1612463745, 3229573153)\n",
      "test.csv:3930 (userId, eventId)=(1614015549, 3982250823)\n",
      "test.csv:3940 (userId, eventId)=(1616063518, 318268706)\n",
      "test.csv:3950 (userId, eventId)=(1618153505, 2205661933)\n",
      "test.csv:3960 (userId, eventId)=(1623287180, 1605169579)\n",
      "test.csv:3970 (userId, eventId)=(1623287180, 4282742813)\n",
      "test.csv:3980 (userId, eventId)=(1623287180, 1277547362)\n",
      "test.csv:3990 (userId, eventId)=(1623287180, 2042072178)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:4000 (userId, eventId)=(1623287180, 1626678328)\n",
      "test.csv:4010 (userId, eventId)=(1626755496, 939765972)\n",
      "test.csv:4020 (userId, eventId)=(1628915638, 979051762)\n",
      "test.csv:4030 (userId, eventId)=(1637866930, 3830416827)\n",
      "test.csv:4040 (userId, eventId)=(1638568594, 3460711091)\n",
      "test.csv:4050 (userId, eventId)=(1644052705, 383090520)\n",
      "test.csv:4060 (userId, eventId)=(1645299738, 3048578499)\n",
      "test.csv:4070 (userId, eventId)=(1661089307, 2428145712)\n",
      "test.csv:4080 (userId, eventId)=(1671510792, 728908337)\n",
      "test.csv:4090 (userId, eventId)=(1683687851, 1269035551)\n",
      "test.csv:4100 (userId, eventId)=(1686132519, 1641491432)\n",
      "test.csv:4110 (userId, eventId)=(1696780091, 2073609284)\n",
      "test.csv:4120 (userId, eventId)=(1697658257, 3168283375)\n",
      "test.csv:4130 (userId, eventId)=(1699374488, 2710165417)\n",
      "test.csv:4140 (userId, eventId)=(1712635579, 4149184300)\n",
      "test.csv:4150 (userId, eventId)=(1727210805, 812516824)\n",
      "test.csv:4160 (userId, eventId)=(1733597545, 1532377761)\n",
      "test.csv:4170 (userId, eventId)=(1738544360, 1179651886)\n",
      "test.csv:4180 (userId, eventId)=(1742267789, 2823343043)\n",
      "test.csv:4190 (userId, eventId)=(1743103684, 3765621344)\n",
      "test.csv:4200 (userId, eventId)=(1753157654, 4073937824)\n",
      "test.csv:4210 (userId, eventId)=(1757163647, 2643833505)\n",
      "test.csv:4220 (userId, eventId)=(1757874805, 910169576)\n",
      "test.csv:4230 (userId, eventId)=(1759431765, 3057595260)\n",
      "test.csv:4240 (userId, eventId)=(1761070733, 23065304)\n",
      "test.csv:4250 (userId, eventId)=(1764410879, 739813844)\n",
      "test.csv:4260 (userId, eventId)=(1776705938, 721486079)\n",
      "test.csv:4270 (userId, eventId)=(1781227779, 3776957253)\n",
      "test.csv:4280 (userId, eventId)=(1781308359, 3455216998)\n",
      "test.csv:4290 (userId, eventId)=(1781308359, 1497910534)\n",
      "test.csv:4300 (userId, eventId)=(1781308359, 1576479513)\n",
      "test.csv:4310 (userId, eventId)=(1784981569, 2429151401)\n",
      "test.csv:4320 (userId, eventId)=(1792619547, 3509100603)\n",
      "test.csv:4330 (userId, eventId)=(1793252788, 4113223676)\n",
      "test.csv:4340 (userId, eventId)=(1794241017, 568700686)\n",
      "test.csv:4350 (userId, eventId)=(1795877465, 496131340)\n",
      "test.csv:4360 (userId, eventId)=(1800952806, 3048578499)\n",
      "test.csv:4370 (userId, eventId)=(1802788012, 3412735820)\n",
      "test.csv:4380 (userId, eventId)=(1805653308, 1824198418)\n",
      "test.csv:4390 (userId, eventId)=(1807506815, 1939550439)\n",
      "test.csv:4400 (userId, eventId)=(1810026348, 771676713)\n",
      "test.csv:4410 (userId, eventId)=(1819190828, 3909833464)\n",
      "test.csv:4420 (userId, eventId)=(1827991074, 2130616732)\n",
      "test.csv:4430 (userId, eventId)=(1834677339, 3107030929)\n",
      "test.csv:4440 (userId, eventId)=(1838447403, 2914054397)\n",
      "test.csv:4450 (userId, eventId)=(1847477018, 2166881970)\n",
      "test.csv:4460 (userId, eventId)=(1847581168, 3312315763)\n",
      "test.csv:4470 (userId, eventId)=(1848901690, 3402209713)\n",
      "test.csv:4480 (userId, eventId)=(1853545080, 3453637848)\n",
      "test.csv:4490 (userId, eventId)=(1853614834, 1660503085)\n",
      "test.csv:4500 (userId, eventId)=(1855201342, 2603032829)\n",
      "test.csv:4510 (userId, eventId)=(1855764195, 2998860547)\n",
      "test.csv:4520 (userId, eventId)=(1860318569, 1921387318)\n",
      "test.csv:4530 (userId, eventId)=(1868178875, 3895387137)\n",
      "test.csv:4540 (userId, eventId)=(1879127286, 673098017)\n",
      "test.csv:4550 (userId, eventId)=(1879197141, 1860393518)\n",
      "test.csv:4560 (userId, eventId)=(1882369333, 2663742216)\n",
      "test.csv:4570 (userId, eventId)=(1882928667, 553125617)\n",
      "test.csv:4580 (userId, eventId)=(1890795413, 4193610911)\n",
      "test.csv:4590 (userId, eventId)=(1890962723, 3073190206)\n",
      "test.csv:4600 (userId, eventId)=(1895700651, 1600413013)\n",
      "test.csv:4610 (userId, eventId)=(1905298796, 3849306291)\n",
      "test.csv:4620 (userId, eventId)=(1910313147, 1012343640)\n",
      "test.csv:4630 (userId, eventId)=(1910313147, 3901745148)\n",
      "test.csv:4640 (userId, eventId)=(1919684252, 1734223694)\n",
      "test.csv:4650 (userId, eventId)=(1920804065, 660511012)\n",
      "test.csv:4660 (userId, eventId)=(1920804065, 648394846)\n",
      "test.csv:4670 (userId, eventId)=(1927515781, 3103100779)\n",
      "test.csv:4680 (userId, eventId)=(1929993059, 328050860)\n",
      "test.csv:4690 (userId, eventId)=(1931229576, 1710224312)\n",
      "test.csv:4700 (userId, eventId)=(1935886581, 1269035551)\n",
      "test.csv:4710 (userId, eventId)=(1939233431, 1650341169)\n",
      "test.csv:4720 (userId, eventId)=(1941301893, 2114371180)\n",
      "test.csv:4730 (userId, eventId)=(1945364081, 1171747241)\n",
      "test.csv:4740 (userId, eventId)=(1947430492, 2007279414)\n",
      "test.csv:4750 (userId, eventId)=(1949308966, 911059261)\n",
      "test.csv:4760 (userId, eventId)=(1952195470, 3409795848)\n",
      "test.csv:4770 (userId, eventId)=(1952989987, 2059512399)\n",
      "test.csv:4780 (userId, eventId)=(1953311106, 1128274822)\n",
      "test.csv:4790 (userId, eventId)=(1954551442, 3644643572)\n",
      "test.csv:4800 (userId, eventId)=(1956869615, 1883639561)\n",
      "test.csv:4810 (userId, eventId)=(1958055739, 2023131804)\n",
      "test.csv:4820 (userId, eventId)=(1964994682, 2529072432)\n",
      "test.csv:4830 (userId, eventId)=(1972874413, 3276213471)\n",
      "test.csv:4840 (userId, eventId)=(1981701814, 3849306291)\n",
      "test.csv:4850 (userId, eventId)=(1990497157, 1600413013)\n",
      "test.csv:4860 (userId, eventId)=(1995670379, 498238691)\n",
      "test.csv:4870 (userId, eventId)=(1999564447, 2081500137)\n",
      "test.csv:4880 (userId, eventId)=(1999564447, 4140154751)\n",
      "test.csv:4890 (userId, eventId)=(2001549733, 268233790)\n",
      "test.csv:4900 (userId, eventId)=(2015847697, 2289214808)\n",
      "test.csv:4910 (userId, eventId)=(2020751512, 2149464820)\n",
      "test.csv:4920 (userId, eventId)=(2022846287, 1131892723)\n",
      "test.csv:4930 (userId, eventId)=(2024760795, 3509100603)\n",
      "test.csv:4940 (userId, eventId)=(2028372118, 1856334232)\n",
      "test.csv:4950 (userId, eventId)=(2030247174, 1076364848)\n",
      "test.csv:4960 (userId, eventId)=(2034718190, 2773032826)\n",
      "test.csv:4970 (userId, eventId)=(2056169186, 2418142030)\n",
      "test.csv:4980 (userId, eventId)=(2057654985, 823015621)\n",
      "test.csv:4990 (userId, eventId)=(2069616722, 2153037761)\n",
      "test.csv:5000 (userId, eventId)=(2083900381, 2529072432)\n",
      "test.csv:5010 (userId, eventId)=(2086141202, 486845209)\n",
      "test.csv:5020 (userId, eventId)=(2087739026, 1390707377)\n",
      "test.csv:5030 (userId, eventId)=(2097638279, 1390707377)\n",
      "test.csv:5040 (userId, eventId)=(2098666939, 2305935776)\n",
      "test.csv:5050 (userId, eventId)=(2101691514, 2529072432)\n",
      "test.csv:5060 (userId, eventId)=(2106955961, 1699663431)\n",
      "test.csv:5070 (userId, eventId)=(2123040565, 2114493120)\n",
      "test.csv:5080 (userId, eventId)=(2128672319, 2330162268)\n",
      "test.csv:5090 (userId, eventId)=(2143805175, 994339684)\n",
      "test.csv:5100 (userId, eventId)=(2143805175, 221202458)\n",
      "test.csv:5110 (userId, eventId)=(2149535146, 313748507)\n",
      "test.csv:5120 (userId, eventId)=(2151293979, 2401798322)\n",
      "test.csv:5130 (userId, eventId)=(2157112080, 3037032940)\n",
      "test.csv:5140 (userId, eventId)=(2157224192, 1542381330)\n",
      "test.csv:5150 (userId, eventId)=(2160680517, 268233790)\n",
      "test.csv:5160 (userId, eventId)=(2170573833, 4247314940)\n",
      "test.csv:5170 (userId, eventId)=(2177461994, 2007279414)\n",
      "test.csv:5180 (userId, eventId)=(2178256738, 2205661933)\n",
      "test.csv:5190 (userId, eventId)=(2179358539, 2529350528)\n",
      "test.csv:5200 (userId, eventId)=(2185852179, 1488068589)\n",
      "test.csv:5210 (userId, eventId)=(2194944131, 3048578499)\n",
      "test.csv:5220 (userId, eventId)=(2195608251, 4251372836)\n",
      "test.csv:5230 (userId, eventId)=(2206472604, 2770466219)\n",
      "test.csv:5240 (userId, eventId)=(2215389832, 1597380017)\n",
      "test.csv:5250 (userId, eventId)=(2223139042, 1889248965)\n",
      "test.csv:5260 (userId, eventId)=(2223139042, 2391815688)\n",
      "test.csv:5270 (userId, eventId)=(2225154987, 3855266116)\n",
      "test.csv:5280 (userId, eventId)=(2229418801, 955398943)\n",
      "test.csv:5290 (userId, eventId)=(2231456394, 1902753965)\n",
      "test.csv:5300 (userId, eventId)=(2236546150, 3331390995)\n",
      "test.csv:5310 (userId, eventId)=(2238882361, 1282404404)\n",
      "test.csv:5320 (userId, eventId)=(2238882361, 935113119)\n",
      "test.csv:5330 (userId, eventId)=(2242768450, 1549996522)\n",
      "test.csv:5340 (userId, eventId)=(2243518535, 2526925550)\n",
      "test.csv:5350 (userId, eventId)=(2251278782, 1856036186)\n",
      "test.csv:5360 (userId, eventId)=(2258212445, 740269154)\n",
      "test.csv:5370 (userId, eventId)=(2269787345, 18501982)\n",
      "test.csv:5380 (userId, eventId)=(2271075773, 1830060678)\n",
      "test.csv:5390 (userId, eventId)=(2275330810, 339349606)\n",
      "test.csv:5400 (userId, eventId)=(2275600529, 3508551200)\n",
      "test.csv:5410 (userId, eventId)=(2278416805, 409257405)\n",
      "test.csv:5420 (userId, eventId)=(2287508577, 4181789141)\n",
      "test.csv:5430 (userId, eventId)=(2291127237, 4001520079)\n",
      "test.csv:5440 (userId, eventId)=(2295604395, 952519340)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:5450 (userId, eventId)=(2296487275, 3657281130)\n",
      "test.csv:5460 (userId, eventId)=(2301083010, 3950589515)\n",
      "test.csv:5470 (userId, eventId)=(2304075585, 3978621008)\n",
      "test.csv:5480 (userId, eventId)=(2313021179, 3123256869)\n",
      "test.csv:5490 (userId, eventId)=(2318198315, 1565715575)\n",
      "test.csv:5500 (userId, eventId)=(2318415276, 2509151803)\n",
      "test.csv:5510 (userId, eventId)=(2322320168, 2288198297)\n",
      "test.csv:5520 (userId, eventId)=(2336501033, 2541362268)\n",
      "test.csv:5530 (userId, eventId)=(2337182196, 2779241460)\n",
      "test.csv:5540 (userId, eventId)=(2343176131, 639120581)\n",
      "test.csv:5550 (userId, eventId)=(2346084629, 771676713)\n",
      "test.csv:5560 (userId, eventId)=(2357605380, 2149464820)\n",
      "test.csv:5570 (userId, eventId)=(2361587577, 601724573)\n",
      "test.csv:5580 (userId, eventId)=(2366244106, 955398943)\n",
      "test.csv:5590 (userId, eventId)=(2367420878, 1642783054)\n",
      "test.csv:5600 (userId, eventId)=(2371436573, 794747940)\n",
      "test.csv:5610 (userId, eventId)=(2377207090, 771676713)\n",
      "test.csv:5620 (userId, eventId)=(2380308964, 469391336)\n",
      "test.csv:5630 (userId, eventId)=(2382789871, 1442371155)\n",
      "test.csv:5640 (userId, eventId)=(2384215566, 2221155670)\n",
      "test.csv:5650 (userId, eventId)=(2386480530, 1390707377)\n",
      "test.csv:5660 (userId, eventId)=(2390912815, 2923175068)\n",
      "test.csv:5670 (userId, eventId)=(2391268949, 910169576)\n",
      "test.csv:5680 (userId, eventId)=(2391596358, 2233985749)\n",
      "test.csv:5690 (userId, eventId)=(2394571811, 622003251)\n",
      "test.csv:5700 (userId, eventId)=(2399025474, 2271049585)\n",
      "test.csv:5710 (userId, eventId)=(2401240952, 2216327290)\n",
      "test.csv:5720 (userId, eventId)=(2402997707, 986099040)\n",
      "test.csv:5730 (userId, eventId)=(2413089165, 4168094163)\n",
      "test.csv:5740 (userId, eventId)=(2413535648, 1241270051)\n",
      "test.csv:5750 (userId, eventId)=(2421584601, 1203717384)\n",
      "test.csv:5760 (userId, eventId)=(2422236655, 218221722)\n",
      "test.csv:5770 (userId, eventId)=(2434848920, 3229573153)\n",
      "test.csv:5780 (userId, eventId)=(2448209717, 446790947)\n",
      "test.csv:5790 (userId, eventId)=(2448209717, 3369636425)\n",
      "test.csv:5800 (userId, eventId)=(2451582701, 4265122277)\n",
      "test.csv:5810 (userId, eventId)=(2456120224, 4231641706)\n",
      "test.csv:5820 (userId, eventId)=(2457838095, 1703984594)\n",
      "test.csv:5830 (userId, eventId)=(2469046391, 2313587840)\n",
      "test.csv:5840 (userId, eventId)=(2480681213, 3425809914)\n",
      "test.csv:5850 (userId, eventId)=(2485680197, 4212674087)\n",
      "test.csv:5860 (userId, eventId)=(2485680197, 3808492697)\n",
      "test.csv:5870 (userId, eventId)=(2488849942, 4177290981)\n",
      "test.csv:5880 (userId, eventId)=(2490302160, 2286515515)\n",
      "test.csv:5890 (userId, eventId)=(2491647582, 4129872355)\n",
      "test.csv:5900 (userId, eventId)=(2491651409, 643346765)\n",
      "test.csv:5910 (userId, eventId)=(2493825465, 293191359)\n",
      "test.csv:5920 (userId, eventId)=(2495861756, 3652056284)\n",
      "test.csv:5930 (userId, eventId)=(2497554543, 1149414651)\n",
      "test.csv:5940 (userId, eventId)=(2505058685, 221202458)\n",
      "test.csv:5950 (userId, eventId)=(2505058685, 1845894044)\n",
      "test.csv:5960 (userId, eventId)=(2512094999, 1832065589)\n",
      "test.csv:5970 (userId, eventId)=(2513652558, 1282404404)\n",
      "test.csv:5980 (userId, eventId)=(2519101341, 152448432)\n",
      "test.csv:5990 (userId, eventId)=(2524220101, 2210350678)\n",
      "test.csv:6000 (userId, eventId)=(2528161539, 4025975316)\n",
      "test.csv:6010 (userId, eventId)=(2528421842, 2891562029)\n",
      "test.csv:6020 (userId, eventId)=(2532791342, 4273083332)\n",
      "test.csv:6030 (userId, eventId)=(2540807169, 3761835607)\n",
      "test.csv:6040 (userId, eventId)=(2552614841, 1739587848)\n",
      "test.csv:6050 (userId, eventId)=(2560062488, 468069570)\n",
      "test.csv:6060 (userId, eventId)=(2573722639, 1902753965)\n",
      "test.csv:6070 (userId, eventId)=(2579352265, 1862794029)\n",
      "test.csv:6080 (userId, eventId)=(2589452714, 3482133976)\n",
      "test.csv:6090 (userId, eventId)=(2593484880, 1222056986)\n",
      "test.csv:6100 (userId, eventId)=(2609208135, 2589709809)\n",
      "test.csv:6110 (userId, eventId)=(2610677742, 1770049890)\n",
      "test.csv:6120 (userId, eventId)=(2615377525, 109813855)\n",
      "test.csv:6130 (userId, eventId)=(2616219713, 1769590720)\n",
      "test.csv:6140 (userId, eventId)=(2616413085, 2485271797)\n",
      "test.csv:6150 (userId, eventId)=(2616413085, 2373204206)\n",
      "test.csv:6160 (userId, eventId)=(2616577596, 3348012164)\n",
      "test.csv:6170 (userId, eventId)=(2628219969, 1621538745)\n",
      "test.csv:6180 (userId, eventId)=(2635883523, 1693226702)\n",
      "test.csv:6190 (userId, eventId)=(2637352610, 3289683998)\n",
      "test.csv:6200 (userId, eventId)=(2642080861, 2610494844)\n",
      "test.csv:6210 (userId, eventId)=(2642080861, 1569838328)\n",
      "test.csv:6220 (userId, eventId)=(2645338549, 3549888444)\n",
      "test.csv:6230 (userId, eventId)=(2645338549, 1074521155)\n",
      "test.csv:6240 (userId, eventId)=(2650571118, 4259324970)\n",
      "test.csv:6250 (userId, eventId)=(2652071763, 1776393554)\n",
      "test.csv:6260 (userId, eventId)=(2654323600, 2877011901)\n",
      "test.csv:6270 (userId, eventId)=(2658254174, 1911299906)\n",
      "test.csv:6280 (userId, eventId)=(2664817652, 955398943)\n",
      "test.csv:6290 (userId, eventId)=(2667658189, 2860418664)\n",
      "test.csv:6300 (userId, eventId)=(2668702555, 1844176380)\n",
      "test.csv:6310 (userId, eventId)=(2672443109, 4133838235)\n",
      "test.csv:6320 (userId, eventId)=(2678956041, 4130552113)\n",
      "test.csv:6330 (userId, eventId)=(2686965763, 2103350077)\n",
      "test.csv:6340 (userId, eventId)=(2689941153, 1601916220)\n",
      "test.csv:6350 (userId, eventId)=(2700358387, 3849306291)\n",
      "test.csv:6360 (userId, eventId)=(2702656559, 1951237429)\n",
      "test.csv:6370 (userId, eventId)=(2705896863, 1356178708)\n",
      "test.csv:6380 (userId, eventId)=(2706381153, 3276213471)\n",
      "test.csv:6390 (userId, eventId)=(2712018445, 2939382527)\n",
      "test.csv:6400 (userId, eventId)=(2712755708, 739733335)\n",
      "test.csv:6410 (userId, eventId)=(2716313754, 898528820)\n",
      "test.csv:6420 (userId, eventId)=(2716313754, 2164087788)\n",
      "test.csv:6430 (userId, eventId)=(2716313754, 2754161597)\n",
      "test.csv:6440 (userId, eventId)=(2716313754, 1729757002)\n",
      "test.csv:6450 (userId, eventId)=(2716313754, 3863047854)\n",
      "test.csv:6460 (userId, eventId)=(2716313754, 1730687343)\n",
      "test.csv:6470 (userId, eventId)=(2723711433, 2128371414)\n",
      "test.csv:6480 (userId, eventId)=(2726693879, 432158069)\n",
      "test.csv:6490 (userId, eventId)=(2731543010, 2535809440)\n",
      "test.csv:6500 (userId, eventId)=(2749110768, 4244406355)\n",
      "test.csv:6510 (userId, eventId)=(2754172608, 1548928340)\n",
      "test.csv:6520 (userId, eventId)=(2762021126, 3183605169)\n",
      "test.csv:6530 (userId, eventId)=(2767944555, 3007406784)\n",
      "test.csv:6540 (userId, eventId)=(2774418078, 2459104568)\n",
      "test.csv:6550 (userId, eventId)=(2795891642, 339060886)\n",
      "test.csv:6560 (userId, eventId)=(2799306064, 3984042837)\n",
      "test.csv:6570 (userId, eventId)=(2799869027, 955398943)\n",
      "test.csv:6580 (userId, eventId)=(2805512120, 1370244570)\n",
      "test.csv:6590 (userId, eventId)=(2811723155, 843676515)\n",
      "test.csv:6600 (userId, eventId)=(2813573544, 3081495551)\n",
      "test.csv:6610 (userId, eventId)=(2814084606, 1420231458)\n",
      "test.csv:6620 (userId, eventId)=(2818060180, 3723741723)\n",
      "test.csv:6630 (userId, eventId)=(2818909605, 3388135408)\n",
      "test.csv:6640 (userId, eventId)=(2819638620, 372148582)\n",
      "test.csv:6650 (userId, eventId)=(2828200780, 6815556)\n",
      "test.csv:6660 (userId, eventId)=(2839339716, 1521445358)\n",
      "test.csv:6670 (userId, eventId)=(2849111044, 2923175068)\n",
      "test.csv:6680 (userId, eventId)=(2850503069, 2007279414)\n",
      "test.csv:6690 (userId, eventId)=(2856693199, 1926323783)\n",
      "test.csv:6700 (userId, eventId)=(2857166402, 2798291665)\n",
      "test.csv:6710 (userId, eventId)=(2863925078, 685863199)\n",
      "test.csv:6720 (userId, eventId)=(2869450440, 3074213537)\n",
      "test.csv:6730 (userId, eventId)=(2869450440, 1733366362)\n",
      "test.csv:6740 (userId, eventId)=(2869450440, 2173876437)\n",
      "test.csv:6750 (userId, eventId)=(2869450440, 764661719)\n",
      "test.csv:6760 (userId, eventId)=(2869450440, 1296962014)\n",
      "test.csv:6770 (userId, eventId)=(2869467989, 1205670273)\n",
      "test.csv:6780 (userId, eventId)=(2873615520, 550630680)\n",
      "test.csv:6790 (userId, eventId)=(2874546310, 1111438174)\n",
      "test.csv:6800 (userId, eventId)=(2875507009, 2643430993)\n",
      "test.csv:6810 (userId, eventId)=(2875543516, 3732721577)\n",
      "test.csv:6820 (userId, eventId)=(2875543516, 1376745282)\n",
      "test.csv:6830 (userId, eventId)=(2875543516, 396478584)\n",
      "test.csv:6840 (userId, eventId)=(2875543516, 681219745)\n",
      "test.csv:6850 (userId, eventId)=(2875543516, 3969260761)\n",
      "test.csv:6860 (userId, eventId)=(2875543516, 448676621)\n",
      "test.csv:6870 (userId, eventId)=(2875543516, 3046201277)\n",
      "test.csv:6880 (userId, eventId)=(2875543516, 3022809854)\n",
      "test.csv:6890 (userId, eventId)=(2882325905, 525960636)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:6900 (userId, eventId)=(2883004291, 771676713)\n",
      "test.csv:6910 (userId, eventId)=(2891771317, 1841145872)\n",
      "test.csv:6920 (userId, eventId)=(2896196906, 1958166234)\n",
      "test.csv:6930 (userId, eventId)=(2896254370, 2893435883)\n",
      "test.csv:6940 (userId, eventId)=(2903534974, 3429958607)\n",
      "test.csv:6950 (userId, eventId)=(2906437598, 797638314)\n",
      "test.csv:6960 (userId, eventId)=(2910006718, 2805037878)\n",
      "test.csv:6970 (userId, eventId)=(2911203191, 3634298859)\n",
      "test.csv:6980 (userId, eventId)=(2926898853, 498238691)\n",
      "test.csv:6990 (userId, eventId)=(2927241033, 3389640666)\n",
      "test.csv:7000 (userId, eventId)=(2927772127, 1532377761)\n",
      "test.csv:7010 (userId, eventId)=(2930631258, 2195745382)\n",
      "test.csv:7020 (userId, eventId)=(2932877456, 4231641706)\n",
      "test.csv:7030 (userId, eventId)=(2936934993, 782683695)\n",
      "test.csv:7040 (userId, eventId)=(2943972367, 4125420656)\n",
      "test.csv:7050 (userId, eventId)=(2945719859, 2598678508)\n",
      "test.csv:7060 (userId, eventId)=(2954540407, 3696762643)\n",
      "test.csv:7070 (userId, eventId)=(2957525159, 877025255)\n",
      "test.csv:7080 (userId, eventId)=(2959872768, 1205670273)\n",
      "test.csv:7090 (userId, eventId)=(2964090531, 1820029797)\n",
      "test.csv:7100 (userId, eventId)=(2967741107, 1902753965)\n",
      "test.csv:7110 (userId, eventId)=(2975408825, 152418051)\n",
      "test.csv:7120 (userId, eventId)=(2980760895, 264093631)\n",
      "test.csv:7130 (userId, eventId)=(2991097972, 3420008322)\n",
      "test.csv:7140 (userId, eventId)=(2991097972, 916627849)\n",
      "test.csv:7150 (userId, eventId)=(2998686163, 4198665344)\n",
      "test.csv:7160 (userId, eventId)=(3000809568, 1616971251)\n",
      "test.csv:7170 (userId, eventId)=(3005325737, 1865278837)\n",
      "test.csv:7180 (userId, eventId)=(3005325737, 493625429)\n",
      "test.csv:7190 (userId, eventId)=(3006433212, 3572755662)\n",
      "test.csv:7200 (userId, eventId)=(3019985439, 1451401793)\n",
      "test.csv:7210 (userId, eventId)=(3024528036, 1860786983)\n",
      "test.csv:7220 (userId, eventId)=(3026296984, 2007279414)\n",
      "test.csv:7230 (userId, eventId)=(3027707150, 55674797)\n",
      "test.csv:7240 (userId, eventId)=(3031311007, 2915423024)\n",
      "test.csv:7250 (userId, eventId)=(3044948713, 1770070953)\n",
      "test.csv:7260 (userId, eventId)=(3047819005, 3717837762)\n",
      "test.csv:7270 (userId, eventId)=(3061219196, 3903656386)\n",
      "test.csv:7280 (userId, eventId)=(3062811490, 1349844435)\n",
      "test.csv:7290 (userId, eventId)=(3064141535, 4240012169)\n",
      "test.csv:7300 (userId, eventId)=(3065645152, 2806565970)\n",
      "test.csv:7310 (userId, eventId)=(3076344276, 1198822517)\n",
      "test.csv:7320 (userId, eventId)=(3081802439, 520433121)\n",
      "test.csv:7330 (userId, eventId)=(3083116980, 2149464820)\n",
      "test.csv:7340 (userId, eventId)=(3085653149, 1682999037)\n",
      "test.csv:7350 (userId, eventId)=(3102820911, 1501679119)\n",
      "test.csv:7360 (userId, eventId)=(3110356955, 2876844499)\n",
      "test.csv:7370 (userId, eventId)=(3120509854, 2412834294)\n",
      "test.csv:7380 (userId, eventId)=(3133126031, 1361307272)\n",
      "test.csv:7390 (userId, eventId)=(3138500404, 834360181)\n",
      "test.csv:7400 (userId, eventId)=(3141188020, 907302600)\n",
      "test.csv:7410 (userId, eventId)=(3144716827, 3542981925)\n",
      "test.csv:7420 (userId, eventId)=(3151067532, 2149464820)\n",
      "test.csv:7430 (userId, eventId)=(3156258711, 1170338316)\n",
      "test.csv:7440 (userId, eventId)=(3156280563, 3103100779)\n",
      "test.csv:7450 (userId, eventId)=(3160835923, 2418142030)\n",
      "test.csv:7460 (userId, eventId)=(3170052426, 1911033753)\n",
      "test.csv:7470 (userId, eventId)=(3188659428, 2935869426)\n",
      "test.csv:7480 (userId, eventId)=(3188659428, 2168332178)\n",
      "test.csv:7490 (userId, eventId)=(3188730216, 1041499194)\n",
      "test.csv:7500 (userId, eventId)=(3199685636, 1776393554)\n",
      "test.csv:7510 (userId, eventId)=(3199843944, 2164665174)\n",
      "test.csv:7520 (userId, eventId)=(3203217285, 1608616656)\n",
      "test.csv:7530 (userId, eventId)=(3203593930, 4244463632)\n",
      "test.csv:7540 (userId, eventId)=(3205024967, 2465528861)\n",
      "test.csv:7550 (userId, eventId)=(3211659078, 2247712885)\n",
      "test.csv:7560 (userId, eventId)=(3211659078, 1073011186)\n",
      "test.csv:7570 (userId, eventId)=(3212760933, 1205670273)\n",
      "test.csv:7580 (userId, eventId)=(3216203623, 1304281836)\n",
      "test.csv:7590 (userId, eventId)=(3220841218, 3151646514)\n",
      "test.csv:7600 (userId, eventId)=(3223915354, 2485173442)\n",
      "test.csv:7610 (userId, eventId)=(3231170614, 4203571618)\n",
      "test.csv:7620 (userId, eventId)=(3240223983, 268233790)\n",
      "test.csv:7630 (userId, eventId)=(3245449378, 1269035551)\n",
      "test.csv:7640 (userId, eventId)=(3248992473, 2103350077)\n",
      "test.csv:7650 (userId, eventId)=(3257773536, 3276095034)\n",
      "test.csv:7660 (userId, eventId)=(3261535803, 2149464820)\n",
      "test.csv:7670 (userId, eventId)=(3269497309, 1065083553)\n",
      "test.csv:7680 (userId, eventId)=(3269497309, 1491291821)\n",
      "test.csv:7690 (userId, eventId)=(3271027231, 4214464123)\n",
      "test.csv:7700 (userId, eventId)=(3271072939, 3040173206)\n",
      "test.csv:7710 (userId, eventId)=(3281890361, 1939373766)\n",
      "test.csv:7720 (userId, eventId)=(3284221169, 2130616732)\n",
      "test.csv:7730 (userId, eventId)=(3287283918, 2039358442)\n",
      "test.csv:7740 (userId, eventId)=(3287919994, 1900367007)\n",
      "test.csv:7750 (userId, eventId)=(3292004587, 1947512427)\n",
      "test.csv:7760 (userId, eventId)=(3300006570, 1776393554)\n",
      "test.csv:7770 (userId, eventId)=(3303967764, 1586958576)\n",
      "test.csv:7780 (userId, eventId)=(3310718710, 979018642)\n",
      "test.csv:7790 (userId, eventId)=(3312901615, 3822325901)\n",
      "test.csv:7800 (userId, eventId)=(3317343091, 4224695215)\n",
      "test.csv:7810 (userId, eventId)=(3329238167, 3429610508)\n",
      "test.csv:7820 (userId, eventId)=(3331695347, 1390707377)\n",
      "test.csv:7830 (userId, eventId)=(3341220404, 875838968)\n",
      "test.csv:7840 (userId, eventId)=(3344502842, 649028999)\n",
      "test.csv:7850 (userId, eventId)=(3348106292, 2054163586)\n",
      "test.csv:7860 (userId, eventId)=(3348106292, 3906525090)\n",
      "test.csv:7870 (userId, eventId)=(3353825628, 3347318178)\n",
      "test.csv:7880 (userId, eventId)=(3358691318, 3565637257)\n",
      "test.csv:7890 (userId, eventId)=(3365747117, 4095072803)\n",
      "test.csv:7900 (userId, eventId)=(3369635310, 165954795)\n",
      "test.csv:7910 (userId, eventId)=(3371598262, 4173740423)\n",
      "test.csv:7920 (userId, eventId)=(3376295099, 3505087357)\n",
      "test.csv:7930 (userId, eventId)=(3382101856, 4144714322)\n",
      "test.csv:7940 (userId, eventId)=(3384998777, 334681152)\n",
      "test.csv:7950 (userId, eventId)=(3389539441, 1071582440)\n",
      "test.csv:7960 (userId, eventId)=(3391248744, 1253059865)\n",
      "test.csv:7970 (userId, eventId)=(3393388475, 2055996347)\n",
      "test.csv:7980 (userId, eventId)=(3393388475, 2124576111)\n",
      "test.csv:7990 (userId, eventId)=(3393388475, 191035332)\n",
      "test.csv:8000 (userId, eventId)=(3393388475, 680270887)\n",
      "test.csv:8010 (userId, eventId)=(3398074284, 4035948758)\n",
      "test.csv:8020 (userId, eventId)=(3400749749, 4203627753)\n",
      "test.csv:8030 (userId, eventId)=(3408810544, 3434717258)\n",
      "test.csv:8040 (userId, eventId)=(3412293331, 1879855497)\n",
      "test.csv:8050 (userId, eventId)=(3421486832, 615488222)\n",
      "test.csv:8060 (userId, eventId)=(3440770225, 952519340)\n",
      "test.csv:8070 (userId, eventId)=(3441266811, 332142007)\n",
      "test.csv:8080 (userId, eventId)=(3444786385, 1359628311)\n",
      "test.csv:8090 (userId, eventId)=(3445686240, 2153037761)\n",
      "test.csv:8100 (userId, eventId)=(3449620252, 939563341)\n",
      "test.csv:8110 (userId, eventId)=(3454909050, 1532377761)\n",
      "test.csv:8120 (userId, eventId)=(3462246595, 119655595)\n",
      "test.csv:8130 (userId, eventId)=(3462246595, 18401271)\n",
      "test.csv:8140 (userId, eventId)=(3474165907, 2073609284)\n",
      "test.csv:8150 (userId, eventId)=(3475765358, 326664129)\n",
      "test.csv:8160 (userId, eventId)=(3476937584, 1776393554)\n",
      "test.csv:8170 (userId, eventId)=(3481169628, 3992740948)\n",
      "test.csv:8180 (userId, eventId)=(3481754148, 602394192)\n",
      "test.csv:8190 (userId, eventId)=(3482266552, 4139045662)\n",
      "test.csv:8200 (userId, eventId)=(3491804473, 543972501)\n",
      "test.csv:8210 (userId, eventId)=(3492312016, 163395593)\n",
      "test.csv:8220 (userId, eventId)=(3493543279, 1684807645)\n",
      "test.csv:8230 (userId, eventId)=(3498550995, 2244839178)\n",
      "test.csv:8240 (userId, eventId)=(3505309324, 44607617)\n",
      "test.csv:8250 (userId, eventId)=(3507630779, 1660158596)\n",
      "test.csv:8260 (userId, eventId)=(3513865352, 3281130769)\n",
      "test.csv:8270 (userId, eventId)=(3519404949, 1444583217)\n",
      "test.csv:8280 (userId, eventId)=(3525636297, 1133385189)\n",
      "test.csv:8290 (userId, eventId)=(3526927399, 1914791953)\n",
      "test.csv:8300 (userId, eventId)=(3536262323, 1361307272)\n",
      "test.csv:8310 (userId, eventId)=(3537668660, 2007279414)\n",
      "test.csv:8320 (userId, eventId)=(3543618219, 3358183178)\n",
      "test.csv:8330 (userId, eventId)=(3550832930, 1076364848)\n",
      "test.csv:8340 (userId, eventId)=(3553611984, 3561051213)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:8350 (userId, eventId)=(3556989632, 684002741)\n",
      "test.csv:8360 (userId, eventId)=(3556989632, 602394192)\n",
      "test.csv:8370 (userId, eventId)=(3562653363, 4203627753)\n",
      "test.csv:8380 (userId, eventId)=(3573553441, 892071473)\n",
      "test.csv:8390 (userId, eventId)=(3579660533, 3297564047)\n",
      "test.csv:8400 (userId, eventId)=(3581835660, 185968523)\n",
      "test.csv:8410 (userId, eventId)=(3582004219, 3083179290)\n",
      "test.csv:8420 (userId, eventId)=(3594171699, 1076364848)\n",
      "test.csv:8430 (userId, eventId)=(3598550965, 3981414613)\n",
      "test.csv:8440 (userId, eventId)=(3601169721, 3684638133)\n",
      "test.csv:8450 (userId, eventId)=(3601169721, 2739960670)\n",
      "test.csv:8460 (userId, eventId)=(3601169721, 2473947326)\n",
      "test.csv:8470 (userId, eventId)=(3601169721, 510692114)\n",
      "test.csv:8480 (userId, eventId)=(3601169721, 1278199678)\n",
      "test.csv:8490 (userId, eventId)=(3601169721, 2676714275)\n",
      "test.csv:8500 (userId, eventId)=(3601169721, 154434302)\n",
      "test.csv:8510 (userId, eventId)=(3601169721, 1077901228)\n",
      "test.csv:8520 (userId, eventId)=(3601169721, 2331092173)\n",
      "test.csv:8530 (userId, eventId)=(3601169721, 421512847)\n",
      "test.csv:8540 (userId, eventId)=(3601169721, 2237304267)\n",
      "test.csv:8550 (userId, eventId)=(3601169721, 3955527462)\n",
      "test.csv:8560 (userId, eventId)=(3602900286, 671361248)\n",
      "test.csv:8570 (userId, eventId)=(3603006634, 4179630573)\n",
      "test.csv:8580 (userId, eventId)=(3608734461, 1425625542)\n",
      "test.csv:8590 (userId, eventId)=(3615297413, 3385455424)\n",
      "test.csv:8600 (userId, eventId)=(3617436869, 740982915)\n",
      "test.csv:8610 (userId, eventId)=(3622026274, 2856764723)\n",
      "test.csv:8620 (userId, eventId)=(3627636732, 353933726)\n",
      "test.csv:8630 (userId, eventId)=(3635935632, 3204104078)\n",
      "test.csv:8640 (userId, eventId)=(3636724939, 2643833505)\n",
      "test.csv:8650 (userId, eventId)=(3640843993, 269488834)\n",
      "test.csv:8660 (userId, eventId)=(3645703035, 1960269366)\n",
      "test.csv:8670 (userId, eventId)=(3648621560, 3123869396)\n",
      "test.csv:8680 (userId, eventId)=(3648621560, 1441500112)\n",
      "test.csv:8690 (userId, eventId)=(3655365717, 2149464820)\n",
      "test.csv:8700 (userId, eventId)=(3661711486, 897667289)\n",
      "test.csv:8710 (userId, eventId)=(3664264982, 1668498113)\n",
      "test.csv:8720 (userId, eventId)=(3671028639, 209332472)\n",
      "test.csv:8730 (userId, eventId)=(3677612174, 407061424)\n",
      "test.csv:8740 (userId, eventId)=(3681580730, 1148695493)\n",
      "test.csv:8750 (userId, eventId)=(3682151225, 1269035551)\n",
      "test.csv:8760 (userId, eventId)=(3692641931, 1448086840)\n",
      "test.csv:8770 (userId, eventId)=(3709640639, 3925067644)\n",
      "test.csv:8780 (userId, eventId)=(3709640639, 2264787329)\n",
      "test.csv:8790 (userId, eventId)=(3715650761, 4277739075)\n",
      "test.csv:8800 (userId, eventId)=(3722222609, 3686935155)\n",
      "test.csv:8810 (userId, eventId)=(3730114567, 2973911742)\n",
      "test.csv:8820 (userId, eventId)=(3734822391, 2641028377)\n",
      "test.csv:8830 (userId, eventId)=(3749087176, 3913757674)\n",
      "test.csv:8840 (userId, eventId)=(3759296736, 3465367492)\n",
      "test.csv:8850 (userId, eventId)=(3764872798, 2766425759)\n",
      "test.csv:8860 (userId, eventId)=(3765513583, 1582367689)\n",
      "test.csv:8870 (userId, eventId)=(3769475875, 3221268576)\n",
      "test.csv:8880 (userId, eventId)=(3772044787, 3790866767)\n",
      "test.csv:8890 (userId, eventId)=(3785115584, 2594774265)\n",
      "test.csv:8900 (userId, eventId)=(3785115584, 3097220122)\n",
      "test.csv:8910 (userId, eventId)=(3791989238, 1269035551)\n",
      "test.csv:8920 (userId, eventId)=(3798708300, 125579007)\n",
      "test.csv:8930 (userId, eventId)=(3799738504, 734755850)\n",
      "test.csv:8940 (userId, eventId)=(3808055269, 2355213982)\n",
      "test.csv:8950 (userId, eventId)=(3811993332, 2631368299)\n",
      "test.csv:8960 (userId, eventId)=(3812598434, 749859087)\n",
      "test.csv:8970 (userId, eventId)=(3822101402, 3352368770)\n",
      "test.csv:8980 (userId, eventId)=(3822101402, 510692114)\n",
      "test.csv:8990 (userId, eventId)=(3822101402, 401574569)\n",
      "test.csv:9000 (userId, eventId)=(3828963415, 3067222491)\n",
      "test.csv:9010 (userId, eventId)=(3834320657, 955398943)\n",
      "test.csv:9020 (userId, eventId)=(3837379530, 1630022509)\n",
      "test.csv:9030 (userId, eventId)=(3838037746, 1076364848)\n",
      "test.csv:9040 (userId, eventId)=(3838037746, 3048578499)\n",
      "test.csv:9050 (userId, eventId)=(3850209583, 2610561518)\n",
      "test.csv:9060 (userId, eventId)=(3855705749, 3654419574)\n",
      "test.csv:9070 (userId, eventId)=(3856015515, 4077327097)\n",
      "test.csv:9080 (userId, eventId)=(3859970866, 1670218702)\n",
      "test.csv:9090 (userId, eventId)=(3862393256, 111720609)\n",
      "test.csv:9100 (userId, eventId)=(3864347911, 472699259)\n",
      "test.csv:9110 (userId, eventId)=(3864685851, 915339846)\n",
      "test.csv:9120 (userId, eventId)=(3867877244, 1759571467)\n",
      "test.csv:9130 (userId, eventId)=(3874603947, 2776357538)\n",
      "test.csv:9140 (userId, eventId)=(3874603947, 1580455386)\n",
      "test.csv:9150 (userId, eventId)=(3876455884, 3278814103)\n",
      "test.csv:9160 (userId, eventId)=(3886616779, 3425417232)\n",
      "test.csv:9170 (userId, eventId)=(3887899389, 861118590)\n",
      "test.csv:9180 (userId, eventId)=(3897720034, 1775649973)\n",
      "test.csv:9190 (userId, eventId)=(3900238416, 2529072432)\n",
      "test.csv:9200 (userId, eventId)=(3900967678, 1171754345)\n",
      "test.csv:9210 (userId, eventId)=(3904948602, 3581275802)\n",
      "test.csv:9220 (userId, eventId)=(3911822363, 4260484947)\n",
      "test.csv:9230 (userId, eventId)=(3915913946, 2585228502)\n",
      "test.csv:9240 (userId, eventId)=(3920980605, 2415873572)\n",
      "test.csv:9250 (userId, eventId)=(3924556291, 955398943)\n",
      "test.csv:9260 (userId, eventId)=(3926213876, 3231944809)\n",
      "test.csv:9270 (userId, eventId)=(3936585198, 218221722)\n",
      "test.csv:9280 (userId, eventId)=(3937992703, 1914791953)\n",
      "test.csv:9290 (userId, eventId)=(3939277895, 2007279414)\n",
      "test.csv:9300 (userId, eventId)=(3951036457, 1652798666)\n",
      "test.csv:9310 (userId, eventId)=(3954508529, 2652939428)\n",
      "test.csv:9320 (userId, eventId)=(3954508529, 1902753965)\n",
      "test.csv:9330 (userId, eventId)=(3958701071, 3388135408)\n",
      "test.csv:9340 (userId, eventId)=(3961606436, 1058195960)\n",
      "test.csv:9350 (userId, eventId)=(3968108639, 1882883713)\n",
      "test.csv:9360 (userId, eventId)=(3969445925, 1600413013)\n",
      "test.csv:9370 (userId, eventId)=(3970477206, 543299546)\n",
      "test.csv:9380 (userId, eventId)=(3971850850, 2593938531)\n",
      "test.csv:9390 (userId, eventId)=(3973406086, 2208100090)\n",
      "test.csv:9400 (userId, eventId)=(3973406086, 3864895062)\n",
      "test.csv:9410 (userId, eventId)=(3981117943, 164649836)\n",
      "test.csv:9420 (userId, eventId)=(3987684633, 496131340)\n",
      "test.csv:9430 (userId, eventId)=(3988097489, 1357264754)\n",
      "test.csv:9440 (userId, eventId)=(3994206600, 1361307272)\n",
      "test.csv:9450 (userId, eventId)=(3996979962, 410842839)\n",
      "test.csv:9460 (userId, eventId)=(4005100950, 2534647052)\n",
      "test.csv:9470 (userId, eventId)=(4008611364, 3397711333)\n",
      "test.csv:9480 (userId, eventId)=(4009496977, 4265093803)\n",
      "test.csv:9490 (userId, eventId)=(4016703162, 2811190711)\n",
      "test.csv:9500 (userId, eventId)=(4018723397, 2522610844)\n",
      "test.csv:9510 (userId, eventId)=(4019376868, 2007279414)\n",
      "test.csv:9520 (userId, eventId)=(4019660902, 95893840)\n",
      "test.csv:9530 (userId, eventId)=(4019660902, 709512451)\n",
      "test.csv:9540 (userId, eventId)=(4024328014, 2729267396)\n",
      "test.csv:9550 (userId, eventId)=(4026656138, 4053956936)\n",
      "test.csv:9560 (userId, eventId)=(4030525076, 1370289455)\n",
      "test.csv:9570 (userId, eventId)=(4036617462, 1548902066)\n",
      "test.csv:9580 (userId, eventId)=(4036877181, 771676713)\n",
      "test.csv:9590 (userId, eventId)=(4040113414, 821546192)\n",
      "test.csv:9600 (userId, eventId)=(4042141985, 862080260)\n",
      "test.csv:9610 (userId, eventId)=(4044018474, 3565166403)\n",
      "test.csv:9620 (userId, eventId)=(4045020395, 4231641706)\n",
      "test.csv:9630 (userId, eventId)=(4051263407, 1133385189)\n",
      "test.csv:9640 (userId, eventId)=(4051862296, 3735101795)\n",
      "test.csv:9650 (userId, eventId)=(4057720928, 317758728)\n",
      "test.csv:9660 (userId, eventId)=(4058821927, 2162407766)\n",
      "test.csv:9670 (userId, eventId)=(4063184029, 1133385189)\n",
      "test.csv:9680 (userId, eventId)=(4063804162, 1269713813)\n",
      "test.csv:9690 (userId, eventId)=(4066539799, 3431779223)\n",
      "test.csv:9700 (userId, eventId)=(4072712031, 2763980267)\n",
      "test.csv:9710 (userId, eventId)=(4082925334, 433929966)\n",
      "test.csv:9720 (userId, eventId)=(4084719479, 380338457)\n",
      "test.csv:9730 (userId, eventId)=(4085088124, 3273774165)\n",
      "test.csv:9740 (userId, eventId)=(4091804141, 1811021363)\n",
      "test.csv:9750 (userId, eventId)=(4091807302, 2183041548)\n",
      "test.csv:9760 (userId, eventId)=(4095059025, 1372188915)\n",
      "test.csv:9770 (userId, eventId)=(4095059025, 4283392525)\n",
      "test.csv:9780 (userId, eventId)=(4097717860, 1309770679)\n",
      "test.csv:9790 (userId, eventId)=(4098063101, 2207730512)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test.csv:9800 (userId, eventId)=(4100120866, 3752251002)\n",
      "test.csv:9810 (userId, eventId)=(4107865904, 1205670273)\n",
      "test.csv:9820 (userId, eventId)=(4107865904, 1178194459)\n",
      "test.csv:9830 (userId, eventId)=(4116824604, 3970983262)\n",
      "test.csv:9840 (userId, eventId)=(4122118697, 2012765486)\n",
      "test.csv:9850 (userId, eventId)=(4128087249, 245410232)\n",
      "test.csv:9860 (userId, eventId)=(4128216168, 268233790)\n",
      "test.csv:9870 (userId, eventId)=(4132156908, 1600413013)\n",
      "test.csv:9880 (userId, eventId)=(4136255266, 2153037761)\n",
      "test.csv:9890 (userId, eventId)=(4148656943, 176859368)\n",
      "test.csv:9900 (userId, eventId)=(4155564936, 1190068601)\n",
      "test.csv:9910 (userId, eventId)=(4156591803, 2272220944)\n",
      "test.csv:9920 (userId, eventId)=(4157381568, 3378996021)\n",
      "test.csv:9930 (userId, eventId)=(4159459029, 853521105)\n",
      "test.csv:9940 (userId, eventId)=(4159956578, 41642879)\n",
      "test.csv:9950 (userId, eventId)=(4165509784, 4242816413)\n",
      "test.csv:9960 (userId, eventId)=(4166294065, 3860330975)\n",
      "test.csv:9970 (userId, eventId)=(4168411373, 2167075374)\n",
      "test.csv:9980 (userId, eventId)=(4169100339, 3512203405)\n",
      "test.csv:9990 (userId, eventId)=(4180064266, 2422997693)\n",
      "test.csv:10000 (userId, eventId)=(4180064266, 2658555390)\n",
      "test.csv:10010 (userId, eventId)=(4181821860, 3684713379)\n",
      "test.csv:10020 (userId, eventId)=(4195841083, 637049052)\n",
      "test.csv:10030 (userId, eventId)=(4204903154, 2115491671)\n",
      "test.csv:10040 (userId, eventId)=(4210131689, 2007279414)\n",
      "test.csv:10050 (userId, eventId)=(4212518111, 275352720)\n",
      "test.csv:10060 (userId, eventId)=(4217391078, 2145977549)\n",
      "test.csv:10070 (userId, eventId)=(4227630018, 2196323150)\n",
      "test.csv:10080 (userId, eventId)=(4228123262, 1299746069)\n",
      "test.csv:10090 (userId, eventId)=(4238211626, 3594729381)\n",
      "test.csv:10100 (userId, eventId)=(4241049734, 965094203)\n",
      "test.csv:10110 (userId, eventId)=(4243934665, 4048136503)\n",
      "test.csv:10120 (userId, eventId)=(4245654844, 2452199743)\n",
      "test.csv:10130 (userId, eventId)=(4245654844, 617967595)\n",
      "test.csv:10140 (userId, eventId)=(4246087593, 350873258)\n",
      "test.csv:10150 (userId, eventId)=(4246087593, 3361245766)\n",
      "test.csv:10160 (userId, eventId)=(4246840619, 3068274397)\n",
      "test.csv:10170 (userId, eventId)=(4252018912, 3376874101)\n",
      "test.csv:10180 (userId, eventId)=(4262553869, 1502284248)\n",
      "test.csv:10190 (userId, eventId)=(4268968909, 2748538029)\n",
      "test.csv:10200 (userId, eventId)=(4278102337, 3175914811)\n",
      "test.csv:10210 (userId, eventId)=(4284267710, 3197423454)\n",
      "test.csv:10220 (userId, eventId)=(4288669162, 3632072502)\n",
      "test.csv:10230 (userId, eventId)=(4289419892, 2115491671)\n"
     ]
    }
   ],
   "source": [
    "RS = RecommonderSystem()\n",
    "print( \"生成训练数据...\\n\")\n",
    "generateRSData(RS,train=True,  header=True)\n",
    "\n",
    "print( \"生成预测数据...\\n\")\n",
    "generateRSData(RS, train=False, header=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "时间、地点等特征都没有处理了，可以考虑用户看到event的时间与event开始时间的差、用户地点和event地点的差异。。。"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
